Index: trunk/ippScripts/scripts/magic_destreak_revert.pl
===================================================================
--- trunk/ippScripts/scripts/magic_destreak_revert.pl	(revision 27062)
+++ trunk/ippScripts/scripts/magic_destreak_revert.pl	(revision 27092)
@@ -253,12 +253,5 @@
     if ($mask) {
         if (!revert_file($mask, $bmask)) {
-            if ($stage eq 'chip') {
-                # don't fail if the mask file (from the camera stage) fails to revert.
-                # It probably doesn't exist
-                # XXX: Handle this properly
-                print STDERR "failure to revert mask file, ignored\n";
-            } else {
-                &my_die("failed to restore mask file", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR);
-            }
+            &my_die("failed to restore mask file", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR);
         }
     }
@@ -306,4 +299,5 @@
     my $original = shift;
     my $backup   = shift;
+    my $force = 1; # force deletion of backup files in nebulous
 
     my $o_path = $ipprc->file_resolve($original);
@@ -352,7 +346,7 @@
         }
 
-        if ($b_path and -e $b_path) {
+        if ($b_path) {
             print "ready to delete backup\n" if $verbose;
-            if (! $ipprc->file_delete($backup)) {
+            if (! $ipprc->file_delete($backup, $force)) {
                 print "failed to delete $backup\n";
                 return 0;
@@ -363,6 +357,6 @@
         print "original uri: $original is not a destreaked file no need to swap backup_result: $backup_result\n";
         # delete the 'backup' (destreaked target) file if it exists
-        if ($b_path and -e $b_path) {
-            if (! $ipprc->file_delete($backup)) {
+        if ($b_path) {
+            if (! $ipprc->file_delete($backup, $force)) {
                 print "failed to delete $backup\n";
                 return 0;
