IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 16, 2009, 5:05:19 PM (17 years ago)
Author:
bills
Message:

added new magicDSRun.states goto_restored and goto_censored
The 'revert' process handles processing these transitions
the end result is either 'restored' or 'cesored'
Removed torestoreMode which wasn't implemented yet

File:
1 edited

Legend:

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

    r25383 r25423  
    191191}
    192192
    193 revert_files($image, $mask, $weight, $sources, $astrom, $bimage, $bmask, $bweight, $bsources, $bastrom);
     193revert_files($replace, $image, $mask, $weight, $sources, $astrom, $bimage, $bmask, $bweight, $bsources, $bastrom);
    194194
    195195if ($stage eq "diff") {
     
    203203    $bweight = $ipprc->filename("$name.VARIANCE", $backup_path_base);
    204204    $bsources = $ipprc->filename("$name.SOURCES", $backup_path_base);
    205     revert_files($image, $mask, $weight, $sources, undef, $bimage, $bmask, $bweight, $bsources, undef);
     205    revert_files($replace, $image, $mask, $weight, $sources, undef, $bimage, $bmask, $bweight, $bsources, undef);
    206206}
    207207
    208208# now revert the row in the database
    209209{
    210     my $command = "$magicdstool -revertdestreakedfile";
     210    my $command = "$magicdstool -revertdestreakedfile -i_am_sure";
    211211    $command   .= " -magic_ds_id $magic_ds_id";
    212212    $command   .= " -component $component";
     
    231231
    232232sub revert_files {
     233    my $replace = shift;
     234    return if !$replace;
     235
    233236    my $image = shift;
    234237    my $mask = shift;
Note: See TracChangeset for help on using the changeset viewer.