diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-21 23:15:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-21 23:15:09 +0000 |
commit | 09253b47771b0fed5633b7cf9f169a3bf07adaed (patch) | |
tree | b13b3b709bbd8ef6f6569018851404e4bef584ec /Master/tlpkg/bin/tl-update-auto | |
parent | 20cbd792a27fceea083d02df2ec9820124c2585e (diff) |
doc,sync
git-svn-id: svn://tug.org/texlive/trunk@66042 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-auto')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-auto | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/tlpkg/bin/tl-update-auto b/Master/tlpkg/bin/tl-update-auto index bbe1d1a1520..f75902a412b 100755 --- a/Master/tlpkg/bin/tl-update-auto +++ b/Master/tlpkg/bin/tl-update-auto @@ -249,17 +249,20 @@ fi fi # !config_scripts_only -# ctan mirror list from ctan. Update daily since there is constant -# churn. Something awry with the probing? -# || test `expr $(date +%d) % 2` = 0 +# ctan mirror list from ctan. There is constant churn, so don't +# update more than once a day. 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 https://ctan.org/tex-archive/CTAN.sites -O $ctan_mirrors \ + if test -n "`find $mirrors4tl -newermt '23 hours ago'`"; then + echo "$0: ctan mirror list already updated today, skipping update:" >&2 + ls -l $mirrors4tl >&2 + + elif 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 + $mydir/tl-update-ctan-mirrors -v $ctan_mirrors $ctan_mirmon >$mirrors4tl.new if $diff $mirrors4tl $mirrors4tl.new; then $verbose " $mirrors4tl ok." rm -f $mirrors4tl.new |