IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33041 for trunk


Ignore:
Timestamp:
Jan 2, 2012, 10:23:01 AM (15 years ago)
Author:
bills
Message:

if --repair chiptool -revertprocessedimfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/repair_bad_instance

    r33036 r33041  
    7474}
    7575
     76my $fixed = 0;
    7677if ($good_instance) {
    7778    foreach my $bad (@bad_instances) {
    7879        my $cmd =  "cp   $good_instance $bad";
    7980        print "    $cmd\n";
    80         system $cmd if $go;
     81        if ($go) {
     82            system $cmd;
     83            $fixed = 1;
     84        }
    8185    }
    8286} else {
     
    8488    my $cmd = "regtool -updateprocessedimfile -set_ignored -exp_id $exp_id -class_id $class_id\n";
    8589    print "$cmd\n";
    86     system $cmd if $go;
     90    if ($go) {
     91        $fixed = 1;
     92        system $cmd;
     93    }
     94}
     95
     96if ($fixed) {
     97    my $cmd =  "chiptool -revertprocessedimfile -exp_id $exp_id";
     98    print "$cmd\n";
     99    system $cmd;
    87100}
    88101
Note: See TracChangeset for help on using the changeset viewer.