diff options
Diffstat (limited to 'Master/tlpkg/TeXLive/TLDownload.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLDownload.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Master/tlpkg/TeXLive/TLDownload.pm b/Master/tlpkg/TeXLive/TLDownload.pm index 43241966cc1..b431883d0f8 100644 --- a/Master/tlpkg/TeXLive/TLDownload.pm +++ b/Master/tlpkg/TeXLive/TLDownload.pm @@ -118,11 +118,9 @@ sub get_file { return if $self->disabled; # my $realout = $out; - my $outfh; - our $outfn; + my ($outfh, $outfn); if ($out eq "|") { ($outfh, $outfn) = tempfile(); - END { unlink $outfn if (-f $outfn) ; } $realout = $outfn; } my $response = $self->{'ua'}->get($url, ':content_file' => $realout); |