diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index f839d04d5bc..f8eeec3ba39 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -3007,11 +3007,11 @@ sub give_ctan_mirror_base # we need the verbose output, so no -q. # do not reduce retries here, but timeout still seems desirable. - my $cmd = "$wget $TeXLiveServerURL --timeout=60 -O " + my $mirror = $TeXLiveServerURL; + my $cmd = "$wget $mirror --timeout=60 -O " . (win32() ? "nul" : "/dev/null") . " 2>&1"; my @out = `$cmd`; # analyze the output for the mirror actually selected. - my $mirror = $TeXLiveServerURL; foreach (@out) { if (m/^Location: (\S*)\s*.*$/) { (my $mhost = $1) =~ s,/*$,,; # remove trailing slashes since we add it |