From 410b4b504332ad6155aa587291f35b01f185a295 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 5 Feb 2022 11:02:03 +0000 Subject: Start working on cacert support for old darwin git-svn-id: svn://tug.org/texlive/trunk@61888 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLUtils.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Master/tlpkg') diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 79ff0bb725e..c0a6b26f411 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -2624,6 +2624,22 @@ sub setup_programs { setup_one(($isWin ? "w32" : "unix"), $defprog, "$bindir/$dltype/$defprog.$platform", "--version", $tlfirst); } + # check for curl special stuff on MacOS + if (member("curl", @working_downloaders) && platform() =~ m/^darwin/) { + # + my $use_our_cacert = 0; + # TODO + # check version of darwin and set $use_our_cacert = 1 + # + if ($use_our_cacert == 1) { + my @curlargs = @{$TeXLive::TLConfig::FallbackDownloaderArgs{'curl'}}; + # can't push new arg at end of list because builtin list ends with + # -o to set the output file. + unshift (@curlargs, '--cacert', "SOME PATH WE NEED TO DECIDE TODO"); + $TeXLive::TLConfig::FallbackDownloaderArgs{'curl'} = \@curlargs; + debug("TLUtils::setup_programs: curl on old darwin, final curl args: @{$TeXLive::TLConfig::FallbackDownloaderArgs{'curl'}}\n"); + } + } # check for wget/ssl support if (member("wget", @working_downloaders)) { debug("TLUtils::setup_programs: checking for ssl enabled wget\n"); -- cgit v1.2.3