Index: trunk/ippScripts/scripts/magic_destreak_revert.pl
===================================================================
--- trunk/ippScripts/scripts/magic_destreak_revert.pl	(revision 25418)
+++ trunk/ippScripts/scripts/magic_destreak_revert.pl	(revision 25423)
@@ -191,5 +191,5 @@
 }
 
-revert_files($image, $mask, $weight, $sources, $astrom, $bimage, $bmask, $bweight, $bsources, $bastrom);
+revert_files($replace, $image, $mask, $weight, $sources, $astrom, $bimage, $bmask, $bweight, $bsources, $bastrom);
 
 if ($stage eq "diff") {
@@ -203,10 +203,10 @@
     $bweight = $ipprc->filename("$name.VARIANCE", $backup_path_base);
     $bsources = $ipprc->filename("$name.SOURCES", $backup_path_base);
-    revert_files($image, $mask, $weight, $sources, undef, $bimage, $bmask, $bweight, $bsources, undef);
+    revert_files($replace, $image, $mask, $weight, $sources, undef, $bimage, $bmask, $bweight, $bsources, undef);
 }
 
 # now revert the row in the database
 {
-    my $command = "$magicdstool -revertdestreakedfile";
+    my $command = "$magicdstool -revertdestreakedfile -i_am_sure";
     $command   .= " -magic_ds_id $magic_ds_id";
     $command   .= " -component $component";
@@ -231,4 +231,7 @@
 
 sub revert_files {
+    my $replace = shift;
+    return if !$replace;
+
     my $image = shift;
     my $mask = shift;
