Changeset 36555 for trunk/ippScripts/scripts/dist_advancerun.pl
- Timestamp:
- Feb 25, 2014, 2:12:24 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/dist_advancerun.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/tags/ipp-20140114 (added) merged: 36444-36446,36448,36450,36461-36462,36513,36538-36540,36546-36547,36551,36554
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/dist_advancerun.pl
r35960 r36555 69 69 my $stacktool = can_run('stacktool') or (warn "Can't find stacktool" and $missing_tools = 1); 70 70 my $bgtool = can_run('bgtool') or (warn "Can't find bgtool" and $missing_tools = 1); 71 my $fftool = can_run('fftool') or (warn "Can't find fftool" and $missing_tools = 1); 71 72 my $staticskytool = can_run('staticskytool') or (warn "Can't find staticskytool" and $missing_tools = 1); 72 73 if ($missing_tools) { … … 77 78 78 79 my $tool_cmd; 80 my $tool_cmd2; 79 81 my $list_mode; 80 82 my $component_key; … … 127 129 $list_mode = "-diffskyfile"; 128 130 $component_key = "skycell_id"; 131 } elsif ($stage eq "ff") { 132 $tool_cmd = "$fftool -ff_id"; 133 $list_mode = "-result"; 134 $component_key = "dist_component"; 135 $tool_cmd2 = "$fftool -summary -ff_id" 129 136 } else { 130 137 &my_die("Unexpected stage: $stage", $dist_id, $PS_EXIT_CONFIG_ERROR); … … 132 139 133 140 $tool_cmd .= " $stage_id"; 141 $tool_cmd2 .= " $stage_id" if $tool_cmd2; 134 142 135 143 my $exportarg = '-exportrun'; … … 215 223 my $components = parse_md_list($metadata) or 216 224 &my_die("Unable to parse metadata list", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 225 226 if ($tool_cmd2) { 227 my $command = "$tool_cmd2"; 228 $command .= " -dbname $dbname" if defined $dbname; 229 230 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 231 run(command => $command, verbose => $verbose); 232 unless ($success) { 233 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 234 &my_die("Unable to perform $command: $error_code", $dist_id, $error_code); 235 } 236 if (@$stdout_buf == 0) { 237 &my_die("Unable to perform $command: $error_code", $dist_id, $error_code); 238 } 239 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or 240 &my_die("Unable to parse metadata config doc", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 241 my $more_components = parse_md_list($metadata) or 242 &my_die("Unable to parse metadata list", $dist_id, $PS_EXIT_UNKNOWN_ERROR); 243 if (scalar @$more_components) { 244 push @$components, @$more_components; 245 } 246 } 217 247 218 248 open MANIFEST, ">$resolved" or
Note:
See TracChangeset
for help on using the changeset viewer.
