IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25320 for trunk/pstamp/scripts


Ignore:
Timestamp:
Sep 10, 2009, 12:00:24 PM (17 years ago)
Author:
bills
Message:

Change outputBase to include basename(path_base) in an attempt to make the stamp names
more human friendly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstampparse.pl

    r25285 r25320  
    1414use PS::IPP::PStamp::Job qw( :standard );
    1515use File::Temp qw(tempfile);
     16use File::Basename qw(basename);
    1617use Carp;
    1718
     
    9899
    99100# check for duplicate request name
    100 if (!$no_update) {
    101     my $command = "$pstamptool -listreq  -name $req_name";
     101if ($req_id and !$no_update) {
     102    my $command = "$pstamptool -listreq  -name $req_name -not_req_id $req_id";
    102103    $command .= " -dbname $dbname" if $dbname;
    103104    $command .= " -dbserver $dbserver" if $dbserver;
     
    110111        insertFakeJobForRow(undef, 0, $PSTAMP_DUP_REQUEST);
    111112        exit 0;
    112     } elsif ($exitStatus ne $PS_EXIT_DATA_ERROR) {
    113         # wrong error code something else is wrong
    114         my_die("$command failed", $exitStatus);
    115113    }
    116114}
     
    369367        }
    370368
    371         my $output_base = "$out_dir/${rownum}_${job_num}";
     369        my $base = basename($image->{path_base});
     370
     371        my $output_base = "$out_dir/${rownum}_${job_num}_${base}";
    372372        my $argslist = "${output_base}.args";
    373373
Note: See TracChangeset for help on using the changeset viewer.