IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2009, 11:38:13 AM (17 years ago)
Author:
Paul Price
Message:

Set error code to PROG_ERROR if not already set --- avoids infinite pantasks loops.

File:
1 edited

Legend:

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

    r23255 r23295  
    122122if (-e $tmpdir) {
    123123    if (-d $tmpdir) {
    124         my $rc = system "rm -r $tmpdir"; 
     124        my $rc = system "rm -r $tmpdir";
    125125        &my_die("cannot rm $tmpdir return code: $rc", $dist_id, $component, $PS_EXIT_UNKNOWN_ERROR) if $rc;
    126126    } else {
     
    272272        my $clean_mdc = join "", @data;
    273273
    274         my $mdlist = $mdcParser->parse($clean_mdc) or 
     274        my $mdlist = $mdcParser->parse($clean_mdc) or
    275275                &my_die("failed to parse clean.mdc", $dist_id, $component, $PS_EXIT_UNKNOWN_ERROR);
    276276
     
    293293            next if $rule eq "STAGE";
    294294            my $keep_on_clean = $product_list->{$rule};
    295             my $fn = $ipprc->filename($rule, $path_base, $component) or 
    296                 &my_die("Missing entry from camera config: $rule", $dist_id, $component, 
     295            my $fn = $ipprc->filename($rule, $path_base, $component) or
     296                &my_die("Missing entry from camera config: $rule", $dist_id, $component,
    297297                    $PS_EXIT_CONFIG_ERROR);
    298298    #        printf "%-16.16s\t%s\t%s\n",  $rule, $clean, $fn;
     
    323323    my $exit_code = shift;      # Exit code to add
    324324
     325    $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
     326
    325327    my $command = "$disttool -addprocessedcomponent";
    326328    $command   .= " -dist_id $dist_id";
Note: See TracChangeset for help on using the changeset viewer.