summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}