IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32549


Ignore:
Timestamp:
Oct 13, 2011, 4:10:37 PM (15 years ago)
Author:
watersc1
Message:

Fix messages and exit code to succeed if we've fixed the problem with a replicate/cull combo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-repair

    r32547 r32549  
    128128                        if ($existance[0] == 1) {
    129129                            # We can fix this with culls and replications.
     130                            print "Attempting to fix this.\n";
    130131                            print("neb-replicate $key\n");
    131132                            system("neb-replicate $key");
     
    135136                                system("neb-cull --volume $bad_volume $key");
    136137                            }
     138                            else {
     139                                die "Failed to copy file $valid_file to $f, and subsequent replication also failed!\n";
     140                            }
    137141                        }
    138                         die "Failed to copy file $valid_file to $f!\n";
     142                        else {
     143                            die "Failed to copy file $valid_file to $f!\n";
     144                        }
    139145                    }
    140146                }
Note: See TracChangeset for help on using the changeset viewer.