IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33196


Ignore:
Timestamp:
Feb 2, 2012, 9:32:41 AM (14 years ago)
Author:
bills
Message:

Add new option --repair-lost which causes lost rawImfile to be set to ignored.
Don't do that with -r

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/repair_bad_instance

    r33064 r33196  
    1717     $class_id,
    1818     $pretend,
     19     $repair_lost,
    1920     $go,
    2021     );
     
    2627           'class_id|c=s'   => \$class_id,
    2728           'repair|r'       => \$go,
     29           'repair-lost|l'  => \$repair_lost,
    2830           'pretend'        => \$pretend,
    2931) or pod2usage( 2 );
     
    5052my $file = $stmt->fetchrow_hashref();
    5153
     54if (!$file) {
     55    print STDERR "failed to find rawImfile for $exp_id $class_id\n";
     56    exit 1;
     57}
    5258my $uri = $file->{uri};
    5359my $ignored = $file->{ignored};
     60
     61if (!$uri) {
     62    print STDERR "failed to find uri for $exp_id $class_id\n";
     63    exit 1;
     64}
    5465
    5566my $output = `neb-locate -p -a $uri`;
    5667
    5768if (!$output) {
    58     die "failed to locate any instances for $uri\n";
     69    print STDERR "WARNING failed to locate any instances for $uri\n";
    5970}
    6071
     
    89100    my $cmd = "regtool -dbname $dbname -updateprocessedimfile -set_ignored -exp_id $exp_id -class_id $class_id\n";
    90101    print "$cmd\n";
    91     if ($go) {
     102    if ($repair_lost) {
    92103        $fixed = 1;
    93104        system $cmd;
Note: See TracChangeset for help on using the changeset viewer.