texlive[54909] Master/tlpkg/bin: use envvar instead of option to
commits+karl at tug.org
commits+karl at tug.org
Mon Apr 27 19:23:52 CEST 2020
Revision: 54909
http://tug.org/svn/texlive?view=revision&revision=54909
Author: karl
Date: 2020-04-27 19:23:52 +0200 (Mon, 27 Apr 2020)
Log Message:
-----------
use envvar instead of option to avoid catalogue update of every file with tlpkg-ctan-check --check; bump bad-mirror threshold to 36 hours
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tl-update-ctan-mirrors
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/bin/tlpkginfo
Modified: trunk/Master/tlpkg/bin/tl-update-ctan-mirrors
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-ctan-mirrors 2020-04-27 15:10:54 UTC (rev 54908)
+++ trunk/Master/tlpkg/bin/tl-update-ctan-mirrors 2020-04-27 17:23:52 UTC (rev 54909)
@@ -59,7 +59,7 @@
} else {
# mirrors can be stale and yet not have no_time for their status.
my $age_hours = (time() - $age) / (60 * 60);
- if ($age_hours > 24) {
+ if ($age_hours > 36) {
printf STDERR "mirror age %.1f hours, skipping: $m\n", $age_hours
if $verbose;
} else {
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2020-04-27 15:10:54 UTC (rev 54908)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2020-04-27 17:23:52 UTC (rev 54909)
@@ -1015,7 +1015,9 @@
return 1;
}
- chomp (my $ctan_dir = `$mydir/tlpkginfo --no-catalogue --prepare '$tlpn'`);
+ # don't want to run svn update individually for every catalogue file.
+ my $env = "env TLPKGINFO_CATALOGUE_NO_UPDATE=1";
+ chomp (my $ctan_dir = `$env $mydir/tlpkginfo --prepare '$tlpn'`);
if (! $ctan_dir) {
warn "$0: oops, no CTAN directory for $tlpn, fix fix\n";
return 1;
Modified: trunk/Master/tlpkg/bin/tlpkginfo
===================================================================
--- trunk/Master/tlpkg/bin/tlpkginfo 2020-04-27 15:10:54 UTC (rev 54908)
+++ trunk/Master/tlpkg/bin/tlpkginfo 2020-04-27 17:23:52 UTC (rev 54909)
@@ -71,7 +71,6 @@
-d "$CATALOGUE/k"
|| die "$0: TEX_CATALOGUE ($CATALOGUE) must point to entries/ subdir"
. " of a TeX Catalogue checkout.\n";
- $catalogue_update = 1; # do svn update of catalogue file?
# erroneous or problematic tds files (when new, tell CTAN and author)
$erroneous_tds = join ("|",
@@ -93,9 +92,6 @@
print "$output\n" if $output;
return $output ? 0 : 1;
- } elsif ($ARGV[0] eq "--no-catalogue") {
- $catalogue_update = 0;
-
} elsif ($ARGV[0] eq "--prepare") {
my $output = &prepare ($ARGV[1]);
print "$output\n" if $output; # if no $output, errors elsewhere
@@ -393,8 +389,10 @@
my $catfile = &catalogue_find_file ($catname || $pkg);
if ($catfile) {
# redirect to stderr because we want the only stdout to be the
- # directory name for ctan2tl to use.
- system ("timeout 10s svn update $catfile >&2") if $catalogue_update;
+ # directory name for ctan2tl to use. Intentionally do not use -q
+ # so that we have a chance of noticing errors.
+ system ("timeout 10s svn update $catfile >&2")
+ unless $ENV{"TLPKGINFO_CATALOGUE_NO_UPDATE"};
open (CATFILE, "<$catfile") || die "open($catfile) failed, fixme: $!";
# looking for a line like <install path='...'/>
More information about the tex-live-commits
mailing list.