Changeset 30376 for trunk/ippScripts/scripts/publish_file.pl
- Timestamp:
- Jan 26, 2011, 10:13:30 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/publish_file.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/publish_file.pl
r29980 r30376 42 42 43 43 # Parse the command-line arguments 44 my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir );44 my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir, $need_magic ); 45 45 my ( $dbname, $verbose, $no_update, $no_op, $save_temps, $redirect ); 46 46 my ( $output_format ); … … 54 54 'fileset=s' => \$fileset, # Fileset name 55 55 'workdir=s' => \$workdir, # Working directory 56 'need-magic' => \$need_magic, # do we require censored detections? 56 57 'dbname=s' => \$dbname, # Database name 57 58 'verbose' => \$verbose, # Print to stdout … … 166 167 foreach my $comp ( @$components ) { 167 168 my $path_base = $comp->{path_base}; # Base name for file 169 if (!$need_magic and $comp->{magicked}) { 170 # This client is authorized to receive uncensored detections 171 # Get the uri for the "backup" files 172 print "Using uncensored input from $path_base\n"; 173 $path_base = $ipprc->destreaked_filename($path_base); 174 } 168 175 next if defined $comp->{quality} and $comp->{quality} > 0; 169 176 print "Warning: mis-matched comments\n" if defined $comment and $comment ne $comp->{comment}; … … 181 188 $filename = $ipprc->filename( "PSPHOT.OUT.CMF.MEF", "$path_base.pos" ); 182 189 } 183 $filename = $ipprc->file_resolve($filename); 190 &my_die("input file does not exist: $filename", $pub_id, $PS_EXIT_SYS_ERROR) if !$ipprc->file_exists($filename); 191 my $resolved = $ipprc->file_resolve($filename); 192 193 &my_die("unable to resolve input file: $filename", $pub_id, $PS_EXIT_SYS_ERROR) if !$resolved; 194 195 $filename = $resolved; 184 196 185 197 my $data = { zp => $zp,
Note:
See TracChangeset
for help on using the changeset viewer.
