texlive[45499] Master/texmf-dist/scripts/texlive/tlmgr.pl: implement

commits+preining at tug.org commits+preining at tug.org
Sun Oct 8 16:26:20 CEST 2017


Revision: 45499
          http://tug.org/svn/texlive?view=revision&revision=45499
Author:   preining
Date:     2017-10-08 16:26:19 +0200 (Sun, 08 Oct 2017)
Log Message:
-----------
implement excluding packages in tlmgr/config via update-exclude

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	2017-10-08 00:21:48 UTC (rev 45498)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2017-10-08 14:26:19 UTC (rev 45499)
@@ -2363,6 +2363,8 @@
   my @excluded_pkgs = ();
   if ($opts{"exclude"}) {
     @excluded_pkgs = @{$opts{"exclude"}};
+  } elsif ($config{'update-exclude'}) {
+    @excluded_pkgs = @{$config{'update-exclude'}};
   }
 
   if (!$opts{"list"}) {
@@ -6812,6 +6814,10 @@
         tlwarn("$prg: $fn: Unknown value for persistent-downloads: $val\n");
       }
 
+    } elsif ($key eq "update-exclude") {
+      my @exs = split(/,/, $val);
+      $config{'update-exclude'} = \@exs;
+
     } elsif ($key eq "gui-lang") {
       $config{'gui-lang'} = $val;
 
@@ -8307,6 +8313,10 @@
 removed package, C<tlmgr> quits with an error message.  Excludes are not
 supported in these circumstances.
 
+This option can also be set permanently in the tlmgr config file with 
+the key C<update-exclude>.
+
+
 =item B<--no-auto-remove> [I<pkg>]...
 
 By default, C<tlmgr> tries to remove packages which have disappeared on
@@ -8444,6 +8454,10 @@
 =item C<require-verification>, value 0 or 1 (default 0), same as
 command-line option.
 
+=item C<update-exclude>, value: comma-separated list of packages
+(no space allowed). Same as the command line option C<--exclude>
+for the action C<update>.
+
 =item C<verify-downloads>, value 0 or 1 (default 1), same as
 command-line option.
 



More information about the tex-live-commits mailing list