Skip to content

Commit

Permalink
updating installer data
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Feb 3, 2024
1 parent 5908ed5 commit e67dc4d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion texmf-dist/scripts/texlive/tlmgr.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7469,12 +7469,17 @@ sub setup_one_remotetlpdb {
# 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
Expand All @@ -7493,6 +7498,13 @@ sub setup_one_remotetlpdb {
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);
}
}
}
}

Expand Down

0 comments on commit e67dc4d

Please sign in to comment.