IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26976


Ignore:
Timestamp:
Feb 17, 2010, 1:13:07 PM (16 years ago)
Author:
bills
Message:

if both backup and original files appear to be non-destreaked files fault.
This case should be examined by hand until we understand the problem

File:
1 edited

Legend:

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

    r26489 r26976  
    330330
    331331    if ($backup_is_not_destreaked) {
     332        if ($original_is_not_destreaked) {
     333            # this is unexpected result. throw an error so this can be checked manually
     334            print STDERR "both files appear to not be destreaked\n";
     335            print STDERR "original: $original\n";
     336            print STDERR "backup:   $backup\n";
     337            return 0;
     338        }
    332339        # XXX TODO if stage is raw, check that backup has the correct size and md5sum
    333340
     341        if ($verbose) {
     342            print "ready to swap $backup\n";
     343            print "           to $original\n";
     344        }
    334345        # Do we need to make this test? After the swap we're going to delete the file anyways
    335         print "ready to swap $backup to $original\n" if $verbose;
    336346
    337347        if (! $nebulous->swap($backup, $original)) {
    338             print "failed to swap $backup to $original\n";
     348            print "failed to swap $backup\n";
     349            print "            to $original\n";
    339350            return 0;
    340351        }
Note: See TracChangeset for help on using the changeset viewer.