IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2014, 12:20:19 PM (12 years ago)
Author:
watersc1
Message:

Be more aggressive at fixing missing image files. We should have a good copy somewhere, so try to fix things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_chip.pl

    r37349 r37370  
    199199        my ($ipp_uri, $remote_uri) = uri_convert($uri);
    200200        unless (-e $ipp_uri) {
    201             # This image file is missing, so it will require manual intervention.
    202             &my_die("Required image file $ipp_uri ($chip_id, $class_id) not found.  Stopping this prep.",
    203                     $remote_id,$chip_id,$PS_EXIT_CONFIG_ERROR,$hard_fail_state);
     201            # Try to fix it.
     202            system("neb-repair $uri");
     203            ($ipp_uri, $remote_uri) = uri_convert($uri);
     204            unless (-e $ipp_uri) {
     205                # This image file is missing, so it will require manual intervention.
     206                &my_die("Required image file $ipp_uri ($chip_id, $class_id) not found.  Stopping this prep.",
     207                        $remote_id,$chip_id,$PS_EXIT_CONFIG_ERROR,$hard_fail_state);
     208            }
    204209        }
    205210
Note: See TracChangeset for help on using the changeset viewer.