From d47f67722cb136dbf87bf7f8bebb18c97c8c15ac Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 8 Oct 2017 14:26:19 +0000 Subject: implement excluding packages in tlmgr/config via update-exclude git-svn-id: svn://tug.org/texlive/trunk@45499 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 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. + + =item B<--no-auto-remove> [I]... By default, C tries to remove packages which have disappeared on @@ -8444,6 +8454,10 @@ command-line option. =item C, value 0 or 1 (default 0), same as command-line option. +=item C, value: comma-separated list of packages +(no space allowed). Same as the command line option C<--exclude> +for the action C. + =item C, value 0 or 1 (default 1), same as command-line option. -- cgit v1.2.3