Changeset 36457 for trunk/ippScripts/scripts/dist_bundle.pl
- Timestamp:
- Jan 21, 2014, 10:27:04 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/dist_bundle.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/dist_bundle.pl
r36223 r36457 50 50 'PPSUB.INVERSE.MASK' => 'inv_mask', 51 51 'PPSUB.INVERSE.VARIANCE' => 'inv_variance' ); 52 my %stack_cleaned = ( 'PPSTACK.OUTPUT' => 'image', 52 53 my %stack_cleaned = ( 'PPSTACK.UNCONV' => 'image', 54 'PPSTACK.UNCONV.MASK' => 'mask', 55 'PPSTACK.UNCONV.VARIANCE' => 'variance', 56 'PPSTACK.UNCONV.EXP' => 'exp', 57 'PPSTACK.UNCONV.EXPNUM' => 'expnum', 58 'PPSTACK.UNCONV.EXPWT' => 'expwt' 59 ); 60 61 my %stack_convolved = ( 'PPSTACK.OUTPUT' => 'image', 53 62 'PPSTACK.OUTPUT.MASK' => 'mask', 54 'PPSTACK.OUTPUT.VARIANCE' => 'variance' ); 63 'PPSTACK.OUTPUT.VARIANCE' => 'variance', 64 'PPSTACK.OUTPUT.EXP' => 'exp', 65 'PPSTACK.OUTPUT.EXPNUM' => 'expnum', 66 'PPSTACK.OUTPUT.EXPWT' => 'expwt' 67 ); 55 68 my %empty_cleaned = (); 69 56 70 57 71 … … 136 150 if (($stage ne 'raw') and ($stage ne 'fake') and ($stage ne 'stack_summary') and !$poor_quality) { 137 151 # If the file list is empty it is an error because we should at least get a config dump file 138 # except for fake stage which doesn't do anything yet 152 # except for fake stage which doesn't do anything yet, stack_summary stage, and of course raw files have 153 # no config dump because they aren't processed 139 154 &my_die("empty file list", $component, $PS_EXIT_CONFIG_ERROR) if (!scalar @$file_list); 140 155 } … … 165 180 my $image_type = get_image_type($stage, $file_rule); 166 181 182 # skip useless empty trace files 183 next if ($file_rule =~ /TRACE/); 184 167 185 # if this is an image and we are building a clean bundle or if quality is bad skip this rule 168 186 next if $image_type and ($clean or $poor_quality); 187 188 if ($stage eq 'stack') { 189 # skip convolved stacks since they are deleted just after they are created now 190 next if $stack_convolved{$file_rule}; 191 } 169 192 170 193 # if magic is required, don't ship jpegs or binned fits images … … 180 203 181 204 my $file_name = $file->{name}; 182 my $base = basename($file_name);183 205 my $path = $ipprc->file_resolve($file_name); 206 207 if (!$path and $file_rule =~ /LOG/) { 208 my $compressed_file_name = $file_name . '.bz2'; 209 my $compressed_path = $ipprc->file_resolve($compressed_file_name); 210 if ($compressed_path) { 211 $path = $compressed_path; 212 $file_name = $compressed_file_name; 213 } 214 } 215 184 216 185 217 if (!$path) { … … 194 226 # XXX: perhaps only do this for stages where we know that this happens 195 227 next if $file_rule =~ /STATS/; 196 # don't fail on these "non-essential files" 228 # don't fail if these "non-essential files" are missing 229 next if $file_rule =~ /LOG/; 197 230 next if $file_rule =~ /TRACE/; 198 next if $file_rule =~ /LOG/;199 231 next if $file_rule =~ /BIN/; 200 232 … … 236 268 # create a symbolic link from the file in the nebulous repository 237 269 # in the temporary directory 238 symlink $path, "$tmpdir/ $base";270 symlink $path, "$tmpdir/" . basename($file_name); 239 271 } 240 272 }
Note:
See TracChangeset
for help on using the changeset viewer.
