Changeset 27921
- Timestamp:
- May 11, 2010, 4:07:08 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_checkdependent.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_checkdependent.pl
r27874 r27921 21 21 use Carp; 22 22 23 # XXX: put this in a module somewhere 24 my $IPP_DIFF_MODE_WARP_WARP = 1; 25 my $IPP_DIFF_MODE_WARP_STACK = 2; 26 my $IPP_DIFF_MODE_STACK_WARP = 3; 27 my $IPP_DIFF_MODE_STACK_STACK = 4; 23 28 24 29 my ($dep_id, $stage, $stage_id, $component, $imagedb, $rlabel, $need_magic); … … 103 108 # Got "it" 104 109 110 my $magic_ok = 0; 111 if ($stage eq 'diff') { 112 if ($it->{diff_mode} == $IPP_DIFF_MODE_STACK_STACK) { 113 # stack stack diffs don't need magic, but since the warps need to have the chips destreaked 114 # in order to be processed se set need_magic in the database for all runs 115 # Now the diffs themselves don't need to be destreaked so 116 $magic_ok = 1; 117 } 118 } 105 119 my $status = 0; 106 120 if (($it->{state} eq 'full') or ($it->{state} eq 'update') and ($whole_run or ($it->{data_state} eq 'full')) 107 and (!$need_magic or $ it->{magicked} > 0)) {121 and (!$need_magic or $magic_ok or $it->{magicked} > 0)) { 108 122 109 123 # This Dependency is satisfied. All done! … … 359 373 my $skycell_id = $skycell->{skycell_id}; 360 374 361 # XXX: put this in a module somewhere362 my $IPP_DIFF_MODE_WARP_WARP = 1;363 my $IPP_DIFF_MODE_WARP_STACK = 2;364 my $IPP_DIFF_MODE_STACK_WARP = 3;365 my $IPP_DIFF_MODE_STACK_STACK = 4;366 375 if ($diff_mode == $IPP_DIFF_MODE_WARP_STACK ) { 367 376 # check the state of the template stack 368 my $command = "$stacktool -sum kskyfile -stack_id $skycell->{stack2}";377 my $command = "$stacktool -sumskyfile -stack_id $skycell->{stack2}"; 369 378 my $stack = runToolAndParseExpectOne($command, $verbose); 370 379 my_die("failed to find stackSumSkyfile for stack_id $skycell->{stack2}", $PS_EXIT_UNKNOWN_ERROR) if !$stack; … … 416 425 } elsif ($diff_mode == $IPP_DIFF_MODE_STACK_STACK ) { 417 426 # check the state of the input stack 418 my $command = "$stacktool -sum kskyfile -stack_id $skycell->{stack2}";427 my $command = "$stacktool -sumskyfile -stack_id $skycell->{stack2}"; 419 428 my $stack1 = runToolAndParseExpectOne($command, $verbose); 420 429 my_die("failed to find stackSumSkyfile for stack_id $skycell->{stack2}", $PS_EXIT_UNKNOWN_ERROR) if !$stack1; … … 427 436 } 428 437 # check the state of the template stack 429 $command = "$stacktool -sum kskyfile -stack_id $skycell->{stack2}";438 $command = "$stacktool -sumskyfile -stack_id $skycell->{stack2}"; 430 439 my $stack2 = runToolAndParseExpectOne($command, $verbose); 431 440 my_die("failed to find stackSumSkyfile for stack_id $skycell->{stack2}", $PS_EXIT_UNKNOWN_ERROR) if !$stack2; … … 441 450 } elsif ($diff_mode == $IPP_DIFF_MODE_STACK_WARP ) { 442 451 # check the state of the input stack 443 my $command = "$stacktool -sum kskyfile -stack_id $skycell->{stack1}";452 my $command = "$stacktool -sumskyfile -stack_id $skycell->{stack1}"; 444 453 my $stack = runToolAndParseExpectOne($command, $verbose); 445 454 my_die("failed to find stackSumSkyfile for stack_id $skycell->{stack1}", $PS_EXIT_UNKNOWN_ERROR) if !$stack;
Note:
See TracChangeset
for help on using the changeset viewer.
