Changeset 22750 for trunk/ippScripts/scripts/ipp_cleanup.pl
- Timestamp:
- Mar 2, 2009, 6:06:48 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_cleanup.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_cleanup.pl
r21371 r22750 45 45 defined $mode; 46 46 47 # $mode must be one of "goto_cleaned" or "goto_purged" 48 unless (($mode eq "goto_cleaned") || ($mode eq "goto_purged")) { 47 # $mode must be one of "goto_cleaned", "goto_scrubbed", or "goto_purged" 48 # goto_cleaned and goto_scrubbed both result in 'cleaned': scrubbed allows chips without config files to 49 # be cleaned (they cannot be recovered, but the small data is left behind) 50 unless (($mode eq "goto_cleaned") || ($mode eq "goto_scrubbed") || ($mode eq "goto_purged")) { 49 51 die "invalid cleanup mode $mode\n"; 50 52 } … … 92 94 93 95 # don't clean up unless the data needed to update is available 96 # modes goto_purged and goto_scrubbed will remove files even if the config is non-existent 94 97 if ($mode eq "goto_cleaned") { 95 98 my $config_file = $ipprc->filename("PPIMAGE.CONFIG", $path_base, $class_id); … … 133 136 if ($mode eq "goto_purged") { 134 137 $command .= " -topurgedimfile"; 135 } else { 138 } elsif ($mode eq "goto_scrubbed") { 139 $command .= " -tocleanedimfile_from_scrubbed"; 140 } else { 136 141 $command .= " -tocleanedimfile"; 137 142 } … … 145 150 } 146 151 } else { 152 # if an error happens for one chip, the chipRun will stay in goto_*, but the chips will stop be run 147 153 my $command = "$chiptool -updateprocessedimfile -chip_id $stage_id -class_id $class_id -code 1"; 148 154 $command .= " -dbname $dbname" if defined $dbname; … … 156 162 } 157 163 } 158 159 } elsif ($stage eq "camera") { 164 exit 0; 165 } 166 167 if ($stage eq "camera") { 160 168 die "--stage_id required for stage camera\n" if !$stage_id; 161 169 # this stage uses 'camtool' … … 236 244 } 237 245 exit 0; 238 } elsif ($stage eq "warp") { 246 } 247 248 if ($stage eq "warp") { 239 249 die "--stage_id required for stage warp\n" if !$stage_id; 240 250 # this stage uses 'warptool'
Note:
See TracChangeset
for help on using the changeset viewer.
