[tex-live] bug of auto_remove_install_force_packages routine in tlmgr.pl

T T t34www at googlemail.com
Tue Sep 8 09:44:49 CEST 2009

2009/9/8 Dohyun Kim <nomosnomos at gmail.com>:
> Current tlmgr.pl just ignores the condition mentioned at
> the third line of this comment, that is
> "which are also present in the remote database."
> This is a bug, undoubtedly.

Yes, it looks like it. Thanks for digging into it.

However, your patch changes the logic of package calculation
completely, so I'm not going to apply it without discussion with
Norbert and others. I committed the following patch instead. Could you
grab tlmgr.pl from svn and check if it fixes the problem?



BTW, you put a lot of trust in our pretest version to run updates
completely unattended like that.

Index: texmf/scripts/texlive/tlmgr.pl
--- texmf/scripts/texlive/tlmgr.pl	(revision 15180)
+++ texmf/scripts/texlive/tlmgr.pl	(working copy)
@@ -1553,8 +1553,12 @@
   #     A \cup B set of packages which should be checked for forcible removal
   my @all_schmscolls = ();
-  push @all_schmscolls, $localtlpdb->schemes;
-  push @all_schmscolls, $localtlpdb->collections;
+  for my $p ($localtlpdb->schemes) {
+    push (@all_schmscolls, $p) if defined($tlmediatlpdb->get_package($p));
+  }
+  for my $p ($localtlpdb->collections) {
+    push (@all_schmscolls, $p) if defined($tlmediatlpdb->get_package($p));
+  }
   my @localexpansion_full =
     $localtlpdb->expand_dependencies($localtlpdb, @all_schmscolls);
   my @remoteexpansion_full =

More information about the tex-live mailing list