diff options
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index f8ec1ec7a03..a5899b4bafe 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -2363,6 +2363,8 @@ sub action_update { 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 @@ sub load_options_from_config { 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 @@ for auto-installation, auto-removal, or reinstallation of a forcibly 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 @@ command-line option. =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. |