summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-21 18:01:32 +0000
committerKarl Berry <karl@freefriends.org>2022-02-21 18:01:32 +0000
commit8f48206b57302cb341aeb87531d2d1eeea9dbb98 (patch)
tree5e83ae5ced998d8dbfc159b4b2f3779567720e7e
parenta3ffbe2a05a3163b3c0c640ba9e02bc3e30e3581 (diff)
check distributed cacert.pem -> our curl-ca-bundle.crt
git-svn-id: svn://tug.org/texlive/trunk@62120 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/tlpkg/bin/tl-update-auto26
1 files changed, 21 insertions, 5 deletions
diff --git a/Master/tlpkg/bin/tl-update-auto b/Master/tlpkg/bin/tl-update-auto
index 5b070509a72..1fe6cbe5a08 100755
--- a/Master/tlpkg/bin/tl-update-auto
+++ b/Master/tlpkg/bin/tl-update-auto
@@ -247,17 +247,15 @@ fi
fi # !config_scripts_only
-# ctan mirror list from ctan. Skip every other day,
-# just because daily seems a bit much.
+# ctan mirror list from ctan. Update daily since there is constant
+# churn. Something awry with the probing?
# || test `expr $(date +%d) % 2` = 0
-# But no, let's do it every day for a while until mirror list
-# is more stable.
if $config_scripts_only; then :; else
ctan_mirrors=$TMPDIR/mirrors # incoming data from CTAN
ctan_mirmon=$TMPDIR/mirmon.state
mirrors4tl=tlpkg/installer/ctan-mirrors.pl # massaged for TL
- if wget --quiet http://ctan.org/tex-archive/CTAN.sites -O $ctan_mirrors \
+ if wget --quiet https://ctan.org/tex-archive/CTAN.sites -O $ctan_mirrors \
&& rsync rsync://comedy.dante.de/MirMon/mirmon.state $ctan_mirmon; then
$mydir/tl-update-ctan-mirrors $ctan_mirrors $ctan_mirmon >$mirrors4tl.new
if $diff $mirrors4tl $mirrors4tl.new; then
@@ -276,6 +274,24 @@ if $config_scripts_only; then :; else
fi # !config_scripts_only || !odd_day_num
+# curl cert bundle. Every other day is more than often enough.
+if $config_scripts_only || test `expr $(date +%d) % 2` = 0; then :; else
+ curl_cert_src=https://curl.se/ca/cacert.pem
+ curl_cert_dl=$TMPDIR/cacert.pem
+ curl_cert_inst=tlpkg/installer/curl/curl-ca-bundle.crt
+ if wget --quiet $curl_cert_src -O $curl_cert_dl; then
+ if cmp -s $curl_cert_dl $cert_cert_inst; then
+ $verbose " `basename $curl_cert_inst` ok."
+ else
+ $chicken $cp $curl_cert_dl $curl_cert_inst
+ update_list="$update_list $curl_cert_inst"
+ fi
+ else
+ echo "$0: cert bundle ($curl_bundle_src) not retrievable, skipping." >&2
+ fi
+fi # !config_scripts_only || !odd_day_num
+
+
# svn commits.
status=0
if test -z "$update_list"; then