IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29950 for trunk/ippScripts


Ignore:
Timestamp:
Dec 6, 2010, 11:09:25 AM (15 years ago)
Author:
bills
Message:

fixes to allow things to work when outroot is not in nebulous.
removed unecessary rename. $ipprc->prepare_output() does it now

File:
1 edited

Legend:

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

    r29896 r29950  
    159159        if (storage_object_exists($configuration, \$gone)) {
    160160            if ($gone) {
    161                 rename_gone_file($configuration);
    162161                $configuration = prepare_output('PPIMAGE.CONFIG', $outroot, $class_id, 1);
    163162                # if we dump the config we need to insure that the config dump represents
     
    556555            if ($gone) {
    557556                carp "WARNING: photometry sources storage object exists but all instances are permanently gone";
    558                 rename_gone_file($outputSources);
    559557                $make_sources = 1;
    560558            }
     
    579577            if ($gone) {
    580578                carp "WARNING: PSF storage object exists but all instances are permanently gone";
    581                 rename_gone_file($outputPsf);
    582579                $make_psf = 1;
    583580            }
     
    613610sub storage_object_exists
    614611{
     612    return 0 if !$neb;
     613
    615614    my $file = shift;
    616615    my $ref_all_gone = shift;
     616
    617617
    618618    my $exists = $neb->storage_object_exists($file);
     
    678678    return 1;
    679679}
    680 sub rename_gone_file
    681 {
    682     # check whether the only instance of file is on a lost volume
    683     # XXX: we don't have a proper interface for this.
    684     # For now try to use Bill's hack: the script 'whichnode'
    685 
    686     my $file = shift;
    687     $neb->move($file, "$file.gone") or
    688                     &my_die("failed to rename: $file", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);
    689 }
    690680
    691681# Prepare to write to an output file
     
    718708    &my_die("Couldn't find expected output file: $file",  $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($file);
    719709
    720     if ($replicate and (file_scheme($file) eq 'neb')) {
     710    if ($replicate and $neb) {
    721711        $ipprc->replicate_file($file) or &my_die("failed to replicate: $file\n",  $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR);
    722712    }
Note: See TracChangeset for help on using the changeset viewer.