IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2011, 4:02:29 PM (15 years ago)
Author:
bills
Message:

In distribution client, deal with the vagries of the static sky stage

File:
1 edited

Legend:

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

    r30674 r31567  
    224224        $stage = 'sky';
    225225        # XXX: This should be skycell, but the distribution code uses exposure
    226         $comp_name = 'exposure';
    227         $current_component = $comp_name;
     226        $comp_name = 'skycell_id';
     227#        $current_component = $comp_name;
    228228    } else {
    229229        &my_die( "unexpected run type line found in $filename: $runType\n", $file_id, $PS_EXIT_UNKNOWN_ERROR);
     
    237237        $new_workdir_value = "$workdir/$destdir";
    238238    }
     239
     240    if ($stage eq 'sky') {
     241        # the dbinfo file for a skyRun only has one component and it doesn't contain
     242        # skycell_id which is the way components are listed in the dirinfo file.
     243        my @ids = keys %$components;
     244        &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        $current_component = $ids[0];
     246    }
     247
    239248    my $component_dir;
    240249    if ($current_component) {
Note: See TracChangeset for help on using the changeset viewer.