IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25240


Ignore:
Timestamp:
Sep 1, 2009, 6:06:53 PM (17 years ago)
Author:
Paul Price
Message:

Still wasn't getting diff_id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippScripts/scripts/publish_file.pl

    r25239 r25240  
    4040# Parse the command-line arguments
    4141my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir );
    42 my ( $dbname, $verbose, $no_update, $save_temps, $redirect );
     42my ( $dbname, $verbose, $no_update, $no_op, $save_temps, $redirect );
    4343
    4444GetOptions(
     
    5353    'verbose'           => \$verbose,   # Print to stdout
    5454    'no-update'         => \$no_update, # Don't update the database?
     55    'no-op'             => \$no_op, # Don't do any operations
    5556    'save-temps'        => \$save_temps, # Save temporary files?
    5657    'redirect-output'   => \$redirect,   # Redirect output to log file?
     
    141142                     fake_id => $comp->{fake_id_1},
    142143                     warp_id => $comp->{warp1},
     144                     diff_id => $comp->{diff_id},
    143145                     direction => 1,
    144146        };
     
    166168                         fake_id => $comp->{fake_id_2},
    167169                         warp_id => $comp->{warp2},
     170                         diff_id => $comp->{diff_id},
    168171                         direction => 0,
    169172            };
     
    274277    $command .= " -astrom_rms " . $data->{astrom} if defined $data->{astrom};
    275278
    276     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    277         run(command => $command, verbose => $verbose);
    278     &my_die( "Unable to translate", $pub_id, $PS_EXIT_SYS_ERROR) unless $success;
    279     &my_die( "Unable to find translated file $output", $pub_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $output );
     279    unless ($no_op) {
     280        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     281            run(command => $command, verbose => $verbose);
     282        &my_die( "Unable to translate", $pub_id, $PS_EXIT_SYS_ERROR) unless $success;
     283        &my_die( "Unable to find translated file $output", $pub_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $output );
     284    } else {
     285        print "Not running: $command\n";
     286    }
    280287
    281288    return $output;
Note: See TracChangeset for help on using the changeset viewer.