Changeset 27785
- Timestamp:
- Apr 27, 2010, 2:45:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_destreak_cleanup.pl
r27718 r27785 63 63 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $PS_EXIT_SYS_ERROR ) if $logfile; 64 64 65 if (0) {66 my $nebulousServer = metadataLookupStr( $ipprc->{_siteConfig}, 'NEB_SERVER' );67 &my_die("cannot find NEB_SERVER in site configuration", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if !$nebulousServer;68 69 my $nebulous = eval { Nebulous::Client->new( proxy => $nebulousServer ); };70 if ($@ or not defined $nebulous) {71 &my_die ("Unable to create a Nebulous::Client object with proxy $nebulousServer", $magic_ds_id, $PS_EXIT_CONFIG_ERROR);72 }73 }74 65 75 66 $dbname = metadataLookupStr( $ipprc->{_siteConfig}, 'DBNAME' ) if !$dbname; … … 108 99 109 100 101 &my_die("cleanup not supported for camera stage", $magic_ds_id, $PS_EXIT_PROG_ERROR) if $stage eq "camera"; 102 103 110 104 &my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_cleaned"; 111 105 &my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw"; … … 130 124 $dbh->disconnect() or warn $dbh->errstr; 131 125 126 # We no longer clean up the camera stage mask files, but the code was left in place in case 127 # we change our minds. 128 my $cleanup_cam_mask = 0; 129 132 130 my $dynamicMasks; # Use dynamic masks? 133 131 foreach my $comp (@components) { … … 140 138 if ($stage eq "chip") { 141 139 # Check to see if we're using dynamic masks 142 if ( !defined $dynamicMasks) {140 if ($cleanup_cam_mask && !defined $dynamicMasks) { 143 141 # Get the PSASTRO recipe 144 142 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -";
Note:
See TracChangeset
for help on using the changeset viewer.
