Changeset 35478
- Timestamp:
- May 2, 2013, 11:37:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20130307/ippScripts/scripts/publish_file.pl
r35239 r35478 44 44 # Parse the command-line arguments 45 45 my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir, $need_magic ); 46 my ( $dbname, $verbose, $ no_update, $no_op, $save_temps, $redirect );46 my ( $dbname, $verbose, $very_verbose, $no_update, $no_op, $save_temps, $redirect ); 47 47 my ( $output_format, $difftype ); 48 48 … … 58 58 'dbname=s' => \$dbname, # Database name 59 59 'verbose' => \$verbose, # Print to stdout 60 'very-verbose' => \$very_verbose, # Print even more to stdout 60 61 'no-update' => \$no_update, # Don't update the database? 61 62 'no-op' => \$no_op, # Don't do any operations … … 98 99 $command .= " -dbname $dbname" if defined $dbname; 99 100 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 100 run(command => $command, verbose => $ver bose);101 run(command => $command, verbose => $very_verbose); 101 102 &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $success; 102 103 … … 158 159 $command .= " -dbname $dbname" if defined $dbname; 159 160 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 160 run(command => $command, verbose => $ver bose);161 run(command => $command, verbose => $very_verbose); 161 162 &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $success; 162 163 … … 206 207 $cam_command .= " -dbname $dbname" if defined $dbname; 207 208 my ( $cam_success, $cam_error_code, $cam_full_buf, $cam_stdout_buf, $cam_stderr_buf ) = 208 run(command => $cam_command, verbose => $ver bose);209 run(command => $cam_command, verbose => $very_verbose); 209 210 &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $cam_success; 210 211 my $cam_metadata = $mdcParser->parse(join "", @$cam_stdout_buf) or … … 220 221 $reg_command .= " -dbname $dbname" if defined $dbname; 221 222 my ( $reg_success, $reg_error_code, $reg_full_buf, $reg_stdout_buf, $reg_stderr_buf ) = 222 run(command => $reg_command, verbose => $ver bose);223 run(command => $reg_command, verbose => $very_verbose); 223 224 &my_die( "Unable to retrieve filename", $pub_id, $PS_EXIT_SYS_ERROR) unless $reg_success; 224 225 my $reg_metadata = $mdcParser->parse(join "", @$reg_stdout_buf) or … … 328 329 329 330 unless ($no_update) { 330 my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id -- copy--abspath --product $product --type $dsType --list $dsFileName";331 my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id --link --abspath --product $product --type $dsType --list $dsFileName"; 331 332 $command .= " --ps0 \"$comment\"" if defined $comment; 332 333 $command .= " --ps1 \"$exp_name_1\"" if defined $exp_name_1;
Note:
See TracChangeset
for help on using the changeset viewer.
