texlive[69686] Master/texmf-dist/scripts/texlive/tlmgr.pl: tlmgr:
commits+preining at tug.org
commits+preining at tug.org
Sat Feb 3 08:34:54 CET 2024
Revision: 69686
https://tug.org/svn/texlive?view=revision&revision=69686
Author: preining
Date: 2024-02-03 08:34:54 +0100 (Sat, 03 Feb 2024)
Log Message:
-----------
tlmgr: only keep one hashed database for tlcontrib from mirror.ctan
Modified Paths:
--------------
trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2024-02-03 02:15:59 UTC (rev 69685)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2024-02-03 07:34:54 UTC (rev 69686)
@@ -7469,12 +7469,17 @@
# save remote database if it is a net location
# make sure that the writeout of the tlpdb is done in UNIX mode
# since otherwise the checksum will change.
+ # For the main tlnet and tlcontrib, both of which are distributed
+ # via mirror.ctan, we make sure that we have only one hashed version
+ # of the tlpdb saved locally.
if (!$local_copy_tlpdb_used && $location =~ m;^(https?|ftp)://;) {
my $loc_digest = TeXLive::TLCrypto::tl_short_digest($location);
my $loc_copy_of_remote_tlpdb =
($is_main ?
"$Master/$InfraLocation/texlive.tlpdb.main.$loc_digest" :
- "$Master/$InfraLocation/texlive.tlpdb.$loc_digest");
+ ($location =~ m;texlive/tlcontrib/?$; ?
+ "$Master/$InfraLocation/texlive.tlpdb.tlcontrib.$loc_digest" :
+ "$Master/$InfraLocation/texlive.tlpdb.$loc_digest"));
my $tlfh;
if (!open($tlfh, ">:unix", $loc_copy_of_remote_tlpdb)) {
# that should be only a debug statement, since a user without
@@ -7493,6 +7498,13 @@
unlink($fn);
}
}
+ # Do the same for tlcontrib, which is also distributed via mirror.
+ if ($location =~ m;texlive/tlcontrib/?$;) {
+ for my $fn (<"$Master/$InfraLocation/texlive.tlpdb.tlcontrib.*">) {
+ next if ($fn eq $loc_copy_of_remote_tlpdb);
+ unlink($fn);
+ }
+ }
}
}
More information about the tex-live-commits
mailing list.