Changeset 32911
- Timestamp:
- Dec 9, 2011, 9:45:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20111110/ippScripts/scripts/magic_destreak_revert.pl
r32873 r32911 86 86 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 87 87 88 $ipprc->redirect_ output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile;88 $ipprc->redirect_to_logfile($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile; 89 89 90 90 &my_die("bytes and md5sum are is required for raw stage stage", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) if ($replace and $stage eq 'raw' and (!$bytes or !$md5sum)); … … 421 421 # files are in their original state. Just delete back up file 422 422 # otherwise go to failed_revert for manual inspection. 423 if (!($o_basename =~ /SR_/) and ($b_basename =~ /SR_/)) { 423 # XXX: We probably can get by with just checking the basename of the original file 424 if (!($o_basename =~ /SR_/) ) { 425 # if (!($o_basename =~ /SR_/) and ($b_basename =~ /SR_/)) { 424 426 print STDERR " basenames are as expected it is safe to delete backup file\n"; 425 427 if (! $ipprc->file_delete($backup, $force)) {
Note:
See TracChangeset
for help on using the changeset viewer.
