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:
5 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
  • trunk/ippScripts/scripts/dist_bundle.pl

    r36457 r36555  
    496496    } elsif ($stage eq "stack") {
    497497        $type = $stack_cleaned{$rule};
    498     } elsif ($stage eq "sky" or $stage eq 'skycal' or $stage eq 'stack_summary') {
     498    } elsif ($stage eq "sky" or $stage eq 'skycal' or $stage eq 'stack_summary' or $stage eq 'ff') {
    499499        $type = $empty_cleaned{$rule};
    500500    } else {
     
    588588        # stack_summary stage does not use a config dump file.
    589589        return build_stack_summary_file_list($path_base, \@file_list);
     590    } elsif ($stage eq "ff") {
     591        if ($component eq 'summary') {
     592            # full force summary does not use a config dump file. Cobble together a file list
     593            return build_ff_summary_file_list($path_base, \@file_list);
     594        } else {
     595            $config_file_rule = "PSPHOT.SKY.CONFIG";
     596        }
    590597    } else {
    591598        &my_die("$stage is not a valid stage", $component, $PS_EXIT_CONFIG_ERROR);
     
    742749}
    743750
     751# psphotFullForceSummary does not produce a config dump file cobble together a file list
     752sub build_ff_summary_file_list {
     753    my ($path_base, $file_list) = @_;
     754
     755    my %cmf ;
     756    $cmf{file_rule} = "SOURCES";
     757    $cmf{name} = "$path_base.cmf";
     758    push @$file_list, \%cmf;
     759
     760    my %log;
     761    $log{file_rule} = "LOG";
     762    $log{name} = "$path_base.log";
     763    push @$file_list, \%log;
     764
     765    return $file_list;
     766}
     767
    744768sub my_die
    745769{
  • trunk/ippScripts/scripts/ipp_apply_burntool_single.pl

  • trunk/ippScripts/scripts/publish_file.pl

Note: See TracChangeset for help on using the changeset viewer.