summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-10-08 14:26:19 +0000
committerNorbert Preining <preining@logic.at>2017-10-08 14:26:19 +0000
commitd47f67722cb136dbf87bf7f8bebb18c97c8c15ac (patch)
treedeeac48ddee3dcdcf7a962f1aa3494d937252b56
parent0b78d32e70ac3919862416def6ff8a5273a3e90c (diff)
implement excluding packages in tlmgr/config via update-exclude
git-svn-id: svn://tug.org/texlive/trunk@45499 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl14
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.