IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27598


Ignore:
Timestamp:
Apr 5, 2010, 10:50:51 AM (16 years ago)
Author:
bills
Message:

in the case were neither the original or backup is a destreaked file, check the basenames
of the instances. If the 'original' uri has SR_ in the name and the 'backup' does not
assume it is safe to revert. This will happen when the original uri (streaksremoved file) is incomplete and it's
header doesn't have the destreaked keyword

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak_revert.pl

    r27396 r27598  
    360360            print STDERR "original: $original\n";
    361361            print STDERR "backup:   $backup\n";
    362             return 0;
     362            my $o_basename = basename($o_path);
     363            my $b_basename = basename($b_path);
     364            if (($o_basename =~ /SR_/) and !($b_basename =~ /SR_/)) {
     365                print " basenames are as expected it is safe to revert\n";
     366            } else {
     367                return 0;
     368            }
    363369        }
    364370        # XXX TODO if stage is raw, check that backup has the correct size and md5sum
Note: See TracChangeset for help on using the changeset viewer.