IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 14, 2010, 1:11:03 PM (16 years ago)
Author:
bills
Message:

don't create temporary directory for on the fly skycells unless it is needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak.pl

    r27946 r27957  
    212212                    &my_die("Unable to parse metadata list", $magic_ds_id, $component, $PS_EXIT_PROG_ERROR);
    213213
    214             $temp_dir = tempdir( CLEANUP => !$save_temps);
    215214            ($sfh, $skycell_list) = tempfile( "/tmp/skycell_list.XXXX", UNLINK => !$save_temps);
    216215
     
    221220                } else {
    222221                    # diff run must have been cleaned up, need to create this skycell file on the fly
     222                    if (!defined $temp_dir ) {
     223                        $temp_dir = tempdir( CLEANUP => !$save_temps);
     224                    }
    223225                    my $skycell_id = $skycell->{skycell_id};
    224226                    $skycell_uri = "$temp_dir/$skycell_id";
Note: See TracChangeset for help on using the changeset viewer.