Index: /tags/ipp-20111110/ippScripts/scripts/magic_destreak_revert.pl
===================================================================
--- /tags/ipp-20111110/ippScripts/scripts/magic_destreak_revert.pl	(revision 32910)
+++ /tags/ipp-20111110/ippScripts/scripts/magic_destreak_revert.pl	(revision 32911)
@@ -86,5 +86,5 @@
 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
 
-$ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile;
+$ipprc->redirect_to_logfile($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile;
 
 &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,5 +421,7 @@
             # files are in their original state. Just delete back up file
             # otherwise go to failed_revert for manual inspection.
-            if (!($o_basename =~ /SR_/) and ($b_basename =~ /SR_/)) {
+	    # XXX: We probably can get by with just checking the basename of the original file
+            if (!($o_basename =~ /SR_/) ) {
+            # if (!($o_basename =~ /SR_/) and ($b_basename =~ /SR_/)) {
                 print STDERR " basenames are as expected it is safe to delete backup file\n";
                 if (! $ipprc->file_delete($backup, $force)) {
