Changeset 26290
- Timestamp:
- Nov 29, 2009, 3:18:43 PM (16 years ago)
- Location:
- trunk/ippScripts
- Files:
-
- 1 added
- 2 edited
-
Build.PL (modified) (1 diff)
-
scripts/magic_destreak_revert.pl (modified) (1 diff)
-
scripts/whichimage (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/Build.PL
r26084 r26290 98 98 scripts/rcserver_checkstatus.pl 99 99 scripts/publish_file.pl 100 scripts/whichimage 100 101 )], 101 102 dist_abstract => 'Scripts for running the Pan-STARRS IPP', -
trunk/ippScripts/scripts/magic_destreak_revert.pl
r26266 r26290 389 389 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 390 390 391 # we wouldn't be here unless an entry already exists in the database 392 # my $command = "$magicdstool -adddestreakedfile"; 393 # $command .= " -magic_ds_id $magic_ds_id"; 394 # $command .= " -component $component"; 395 # $command .= " -fault $exit_code"; 396 # $command .= " -dbname $dbname" if defined $dbname; 397 398 # # Add the processed file to the database 399 # unless ($no_update) { 400 # my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 401 # run(command => $command, verbose => $verbose); 402 # unless ($success) { 403 # carp("failed to update database for $magic_ds_id $component"); 404 # } 405 # } else { 406 # print "Skipping command: $command\n"; 407 # } 408 409 carp($msg); 391 # fault the whole run if one of the components fails to revert 392 my $command = "$magicdstool -updaterun"; 393 $command .= " -magic_ds_id $magic_ds_id"; 394 $command .= " -fault $exit_code"; 395 $command .= " -dbname $dbname" if defined $dbname; 396 397 # Add the processed file to the database 398 unless ($no_update) { 399 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 400 run(command => $command, verbose => $verbose); 401 unless ($success) { 402 carp("failed to update database for $magic_ds_id $component"); 403 } 404 } else { 405 print "Skipping command: $command\n"; 406 } 407 410 408 exit $exit_code; 411 409 }
Note:
See TracChangeset
for help on using the changeset viewer.
