Changeset 21330 for trunk/ippScripts/scripts/stack_skycell.pl
- Timestamp:
- Feb 5, 2009, 11:02:18 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/stack_skycell.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/stack_skycell.pl
r21309 r21330 66 66 $logDest .= ".update"; 67 67 } 68 68 69 $ipprc->redirect_output($logDest) if $redirect; 69 70 71 my $temp_images_exist = 0; 70 72 my $image_id = $stack_id; 71 73 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_STACK); … … 192 194 $traceDest .= ".update" if $run_state eq 'update'; 193 195 my $configuration = $ipprc->filename("PPSTACK.CONFIG", $outroot); 196 $temp_images_exist = 1; # failures after this point should attempt to delete the temp images 194 197 195 198 # for update we need to resolve the config filename here because the code that reads it … … 287 290 288 291 289 292 my $my_die_called = 0; 290 293 sub my_die 291 294 { … … 296 299 carp($msg); 297 300 298 delete_temps() unless ($save_temps); 301 unless ($my_die_called) { 302 $my_die_called = 1; 303 delete_temps() unless ($save_temps); 304 } 299 305 300 306 if (defined $stack_id and not $no_update) { … … 317 323 sub delete_temps 318 324 { 325 unless ($temp_images_exist) { 326 print "No temporary images yet generated\n"; 327 return 1; 328 } 329 319 330 print "Ensuring temporary images are deleted.\n"; 320 331 my $command = "$ppConfigDump -camera $camera -recipe PPSTACK $recipe_ppStack -dump-recipe PPSTACK -"; … … 323 334 unless ($success) { 324 335 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 325 &my_die("Unable to perform ppConfigDump: $error_code", $stack_id, $error_code);336 &my_die("Unable to perform ppConfigDump: $error_code", $stack_id, $error_code); 326 337 } 327 338 my $md = $mdcParser->parse(join "", @$stdout_buf) or 328 &my_die("Unable to parse metadata config doc", $stack_id, $PS_EXIT_PROG_ERROR);339 &my_die("Unable to parse metadata config doc", $stack_id, $PS_EXIT_PROG_ERROR); 329 340 330 341 my $temp_delete = metadataLookupBool($md, 'TEMP.DELETE'); # Delete temporary files?
Note:
See TracChangeset
for help on using the changeset viewer.
