diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-18 21:39:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-18 21:39:53 +0000 |
commit | 1a669a42dadb42f9b44c19c2830928a5c2a491b2 (patch) | |
tree | 1bde9590cba15ff3532d0a509699e92caf3e122f /Master/tlpkg/TeXLive | |
parent | 65d2902fbf7c31efa9194e4c059c9786a8807e33 (diff) |
prepend --no-check-certificate to arg list, not
append, since list ends with -O. oops.
git-svn-id: svn://tug.org/texlive/trunk@59259 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 13124b3994a..80d136501ef 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -2592,7 +2592,9 @@ sub setup_programs { if (grep(/\+ssl/, @lines)) { $::progs{'options'}{'wget-ssl'} = 1; my @wgetargs = @{$TeXLive::TLConfig::FallbackDownloaderArgs{'wget'}}; - push @wgetargs, '--no-check-certificate'; + # can't push new arg at end of list because builtin list ends with + # -O to set the output file. + unshift (@wgetargs, '--no-check-certificate'); $TeXLive::TLConfig::FallbackDownloaderArgs{'wget'} = \@wgetargs; debug("TLUtils::setup_programs: wget has ssl, final wget args: @{$TeXLive::TLConfig::FallbackDownloaderArgs{'wget'}}\n"); } else { |