summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2022-02-05 11:02:03 +0000
committerNorbert Preining <preining@logic.at>2022-02-05 11:02:03 +0000
commit410b4b504332ad6155aa587291f35b01f185a295 (patch)
tree49ee0a0651e722689e80b636f80e8ef9aa8678ed /Master
parent2fd334e136d88dde3f606ea0eb1939a99f7f8d9d (diff)
Start working on cacert support for old darwin
git-svn-id: svn://tug.org/texlive/trunk@61888 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm16
1 files changed, 16 insertions, 0 deletions
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");