IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2010, 3:52:39 PM (16 years ago)
Author:
Paul Price
Message:

Print skipped command when --no_update

File:
1 edited

Legend:

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

    r28428 r28490  
    252252}
    253253
    254 unless ($no_update) {
     254{
    255255    my $command = "$diffphottool -diff_phot_id $diff_phot_id -skycell_id $skycell_id";
    256256    $command .= " -done -path_base $outroot";
    257     $command .= " -magicked $magicked" if $magicked;
     257    $command .= " -magicked $magicked" if defined $magicked;
    258258    $command .= " -quality $quality" if defined $quality;
    259259    $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
     
    261261    $command .= " -dbname $dbname" if defined $dbname;
    262262
    263     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    264         run(command => $command, verbose => $verbose);
    265     unless ($success) {
    266         $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    267         &my_die("Command failed: $error_code", $diff_phot_id, $skycell_id, $error_code);
     263    unless ($no_update) {
     264        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     265            run(command => $command, verbose => $verbose);
     266        unless ($success) {
     267            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     268            &my_die("Command failed: $error_code", $diff_phot_id, $skycell_id, $error_code);
     269        }
     270    } else {
     271        print "Skipping update: $command\n";
    268272    }
    269273}
Note: See TracChangeset for help on using the changeset viewer.