IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 25, 2014, 2:12:24 PM (12 years ago)
Author:
bills
Message:

updates from ipp/tags/ipp-20140114

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippScripts/scripts/dist_advancerun.pl

    r35960 r36555  
    6969my $stacktool   = can_run('stacktool') or (warn "Can't find stacktool" and $missing_tools = 1);
    7070my $bgtool = can_run('bgtool') or (warn "Can't find bgtool" and $missing_tools = 1);
     71my $fftool = can_run('fftool') or (warn "Can't find fftool" and $missing_tools = 1);
    7172my $staticskytool = can_run('staticskytool') or (warn "Can't find staticskytool" and $missing_tools = 1);
    7273if ($missing_tools) {
     
    7778
    7879my $tool_cmd;
     80my $tool_cmd2;
    7981my $list_mode;
    8082my $component_key;
     
    127129    $list_mode = "-diffskyfile";
    128130    $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"
    129136} else {
    130137    &my_die("Unexpected stage: $stage", $dist_id, $PS_EXIT_CONFIG_ERROR);
     
    132139
    133140$tool_cmd .= " $stage_id";
     141$tool_cmd2 .= " $stage_id" if $tool_cmd2;
    134142
    135143my $exportarg = '-exportrun';
     
    215223    my $components = parse_md_list($metadata) or
    216224        &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    }
    217247
    218248    open MANIFEST, ">$resolved" or
Note: See TracChangeset for help on using the changeset viewer.