IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2013, 9:13:52 AM (13 years ago)
Author:
bills
Message:

Fix a couple of bugs introduced by the changes to support skycal stage

File:
1 edited

Legend:

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

    r35976 r36185  
    239239    }
    240240
    241     if ($stage eq 'sky' or $stage = 'skycal') {
     241    if ($stage eq 'sky' or $stage eq 'skycal') {
    242242        # the dbinfo file for staticskyRun and skycalRun only have one component and they don't contain
    243243        # skycell_id which is the way components are listed in the dirinfo file.
    244244        my @ids = keys %$components;
    245         &my_die( "unexpected number of components scalar @ids found in staticsky dirinfo file\n", $file_id, $PS_EXIT_UNKNOWN_ERROR) if scalar @ids != 1;
     245        my $nComponents = scalar @ids;
     246        &my_die( "unexpected number of components $nComponents found in $stage dirinfo file\n", $file_id, $PS_EXIT_UNKNOWN_ERROR) if $nComponents  != 1;
    246247        $current_component = $ids[0];
    247248    }
Note: See TracChangeset for help on using the changeset viewer.