IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2014, 4:21:47 PM (12 years ago)
Author:
watersc1
Message:

Added burntool table check and regenerate call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_chip.pl

    r37298 r37314  
    3232my $detselect= can_run('detselect') or (warn "Can't find detselect" and $missing_tools = 1);
    3333my $remotetool = can_run('remotetool') or (warn "Can't find remotetool" and $missing_tools = 1);
     34my $ipp_burntool_fix = can_run('ipp_apply_burntool_fix.pl') or (warn "Can't find ipp_apply_burntool_fix.pl" and $missing_tools = 1);
    3435
    3536if ($missing_tools) {
     
    199200        my ($ipp_btt, $remote_btt) = uri_to_outputs_raw($btt);
    200201
     202        # Check burntool table for existance, and if it doesn't, regenerate it.
     203        unless (-e $ipp_btt) {
     204            my $exp_name = $chipEntry->{exp_name};
     205            my $burntool_command = "$ipp_burntool_fix --exp_name $exp_name --class_id $class_id";
     206            $burntool_command   .= " -dbname $dbname" if defined($dbname);
     207            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     208                run(command => $burntool_command, verbose => $dbverbose);
     209            # That command repairs the tables, but the instance we learned about may not be correct. 
     210            # Look up the new one.
     211            ($ipp_btt, $remote_btt) = uri_to_outputs_raw($btt);
     212           
     213            unless (-e $ipp_btt) {
     214                &my_die("Attempted regeneration of burntool table has failed.  Stopping everything.", $remote_id,$chip_id, $PS_EXIT_CONFIG_ERROR, $fail_state);
     215            }
     216        }
     217
    201218        # Initialize the ppI command
    202219        my $ppImage_command = "ppImage -file $remote_uri";
Note: See TracChangeset for help on using the changeset viewer.