IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2011, 11:16:03 AM (15 years ago)
Author:
bills
Message:

integrate workaround to the problem reported in ticket 1501. Don't use config dump
files for diff_id < 88268

File:
1 edited

Legend:

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

    r32562 r32637  
    277277    $outputStats = prepare_output("SKYCELL.STATS.UPDATE", $outroot, 1);
    278278    $configuration = $ipprc->filename("PPSUB.CONFIG", $outroot);
     279    # XXX: Work around problem with updating old diff runs. Their config files are incompatible
     280    # with the current code.
     281    if ($camera ne 'GPC1' or $diff_id >= 88268) {
     282        if (!$ipprc->file_exists($configuration)) {
     283            print STDERR "WARNING: Config dump file $configuration is missing. Using current recipes and file rules.\n";
     284            $configuration = undef;
     285        }
     286    } else {
     287        print STDERR "WARNING: Using new recipes because config dump file is too old\n";
     288        $configuration = undef;
     289    }
     290
    279291    if (!$ipprc->file_exists($configuration)) {
    280292       print STDERR "WARNING: Config dump file $configuration is missing. Using current recipes and file rules.\n";
Note: See TracChangeset for help on using the changeset viewer.