Changeset 32947 for trunk/ippScripts/scripts/dist_component.pl
- Timestamp:
- Dec 13, 2011, 11:17:17 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/dist_component.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/dist_component.pl
r30922 r32947 37 37 # Parse the command-line arguments 38 38 my ($dist_id, $camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $clean, $alt_path_base); 39 my ($outdir, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $exp_type );39 my ($outdir, $run_state, $data_state, $magicked, $no_magic, $poor_quality, $exp_type, $rerun); 40 40 my ($dbname, $save_temps, $verbose, $no_update, $logfile); 41 41 … … 57 57 'outdir=s' => \$outdir, # "directory" for outputs 58 58 'clean' => \$clean, # create clean distribution 59 'rerun' => \$rerun, # recreate an existing component and update the database 59 60 'save-temps' => \$save_temps, # Save temporary files? 60 61 'dbname=s' => \$dbname, # Database name … … 76 77 77 78 my $ipprc = PS::IPP::Config->new($camera); # IPP configuration 78 $ipprc->redirect_ output($logfile) if $logfile;79 $ipprc->redirect_to_logfile($logfile) if $logfile; 79 80 80 81 my $temproot = metadataLookupStr($ipprc->{_siteConfig}, "TEMP.DIR"); … … 146 147 147 148 { 148 my $command = "$disttool -addprocessedcomponent -dist_id $dist_id -component $component -outdir $outdir"; 149 my $command; 150 if (!$rerun) { 151 $command = "$disttool -addprocessedcomponent"; 152 } else { 153 $command = "$disttool -updateprocessedcomponent"; 154 } 155 156 $command .= " -dist_id $dist_id -component $component -outdir $outdir"; 149 157 $command .= " -name $file_name -bytes $bytes -md5sum $md5sum"; 150 158 $command .= " -dbname $dbname" if defined $dbname; … … 175 183 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 176 184 177 my $command = "$disttool -addprocessedcomponent"; 185 my $command; 186 if (!$rerun) { 187 $command = "$disttool -addprocessedcomponent"; 188 } else { 189 $command = "$disttool -updateprocessedcomponent"; 190 } 178 191 $command .= " -dist_id $dist_id"; 179 192 $command .= " -component $component";
Note:
See TracChangeset
for help on using the changeset viewer.
