summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/tlpkg/TeXLive/TLDownload.pm4
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);