IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35976


Ignore:
Timestamp:
Aug 19, 2013, 2:30:26 PM (13 years ago)
Author:
bills
Message:

support for skycal stage in distribution client

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r29574 r35976  
    6565    my ($stage) = $filename =~ m|^dbinfo\.(\S+)\.\d+\.mdc$|; # Stage of interest
    6666    my $tool_name;
     67    my $tool_mode = '-importrun';
    6768    if ($stage eq "raw") {
    6869        $tool_name = "regtool";
     
    7374    } elsif ($stage eq "sky") {
    7475        $tool_name = "staticskytool";
     76    } elsif ($stage eq "skycal") {
     77        $tool_name = "staticskytool";
     78        $tool_mode = '-importskycal';
    7579    } else {
    7680        $tool_name = "${stage}tool";
     
    8185    &my_die("Unable to resolve $dbinfo_uri\n", $PS_EXIT_UNKNOWN_ERROR) unless $file;
    8286
    83     my $command = "$tool -importrun -infile $file"; # Command to execute
     87    my $command = "$tool $tool_mode -infile $file"; # Command to execute
    8488    $command .= " -dbname $dbname" if defined $dbname;
    8589    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
  • trunk/ippScripts/scripts/receive_file.pl

    r31567 r35976  
    223223    } elsif ($runType eq 'staticskyRun') {
    224224        $stage = 'sky';
    225         # XXX: This should be skycell, but the distribution code uses exposure
    226225        $comp_name = 'skycell_id';
    227 #        $current_component = $comp_name;
     226    } elsif ($runType eq 'skycalRun') {
     227        $stage = 'skycal';
     228        $comp_name = 'skycell_id';
    228229    } else {
    229230        &my_die( "unexpected run type line found in $filename: $runType\n", $file_id, $PS_EXIT_UNKNOWN_ERROR);
     
    238239    }
    239240
    240     if ($stage eq 'sky') {
    241         # the dbinfo file for a skyRun only has one component and it doesn't contain
     241    if ($stage eq 'sky' or $stage = 'skycal') {
     242        # the dbinfo file for staticskyRun and skycalRun only have one component and they don't contain
    242243        # skycell_id which is the way components are listed in the dirinfo file.
    243244        my @ids = keys %$components;
Note: See TracChangeset for help on using the changeset viewer.