texlive[68562] Master/tlpkg/TeXLive/TLPDB.pm: (remove_package): don't

commits+karl at tug.org commits+karl at tug.org
Mon Oct 16 19:17:01 CEST 2023


Revision: 68562
          https://tug.org/svn/texlive?view=revision&revision=68562
Author:   karl
Date:     2023-10-16 19:17:01 +0200 (Mon, 16 Oct 2023)
Log Message:
-----------
(remove_package): don't worry if a file to be
removed doesn't exist, for the case where we're
called from tl-update-containers.

Modified Paths:
--------------
    trunk/Master/tlpkg/TeXLive/TLPDB.pm

Modified: trunk/Master/tlpkg/TeXLive/TLPDB.pm
===================================================================
--- trunk/Master/tlpkg/TeXLive/TLPDB.pm	2023-10-16 14:53:03 UTC (rev 68561)
+++ trunk/Master/tlpkg/TeXLive/TLPDB.pm	2023-10-16 17:17:01 UTC (rev 68562)
@@ -2128,8 +2128,13 @@
 
     # now do the removal
     for my $entry (@goodfiles) {
+      # sometimes the files might not be there: 1) we remove .tlpobj
+      # explicitly above; 2) we're called from tl-update-containers
+      # to update the network tlpdb, and that doesn't have an expanded
+      # texmf-dist.
+      next unless -e $entry;
+      #
       unlink($entry)
-      || $entry =~ /\.tlpobj$/ # we remove .tlpobj explicitly above
       || tlwarn("TLPDB::remove_package: Could not unlink $entry: $!\n");
     }
     for my $d (@removals) {



More information about the tex-live-commits mailing list.