summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-05-18 15:11:39 +0000
committerNorbert Preining <preining@logic.at>2009-05-18 15:11:39 +0000
commitab2021df43d55ac856036ce0804d39249b4d3a00 (patch)
tree97338da7960c5548d772674671a56d30eb200aaf /Master
parentea3d5bceb3c074cdc25a665e87fbd38f526a7223 (diff)
auto-remove packages only when update --all is given, not single packages
updates git-svn-id: svn://tug.org/texlive/trunk@13205 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 201c3f34fb0..f6d1e41fd10 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -1509,7 +1509,10 @@ sub action_update {
info("remove $p (removed on server)\n");
}
}
- if (!($opts{"dry-run"} or $opts{"list"} or $opts{"no-remove"})) {
+ # we only remove packages when update --all is called, not on single
+ # package updates
+ if ($opts{"all"} and
+ !($opts{"dry-run"} or $opts{"list"} or $opts{"no-remove"})) {
merge_into(\%ret, $localtlmedia->remove_package($p));
logpackage("remove: $p");
}