From 1a669a42dadb42f9b44c19c2830928a5c2a491b2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 18 May 2021 21:39:53 +0000 Subject: 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 --- Master/tlpkg/TeXLive/TLUtils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Master/tlpkg/TeXLive/TLUtils.pm') 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 { -- cgit v1.2.3