summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-08-08 14:05:36 +0000
committerNorbert Preining <preining@logic.at>2009-08-08 14:05:36 +0000
commit5121cb2fd331cc140fe91dc13c95fc2be5645ed9 (patch)
treedd7e33d95e833c7bb17bd26a8e082e649e31f1cc /Master/texmf
parentc735b9241ab79b03666e3793b15c35d86be0719f (diff)
do not restart tlmgr --self --all if no update to tlmgr is present
git-svn-id: svn://tug.org/texlive/trunk@14583 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 82790b003e8..02a260b53df 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -1570,7 +1570,7 @@ sub action_update {
my @todo;
if ($opts{"list"}) {
@todo = $localtlpdb->list_packages;
- } elsif ($opts{"self"}) {
+ } elsif ($opts{"self"} && @critical) {
@todo = @critical;
} elsif ($opts{"all"}) {
@todo = $localtlpdb->list_packages;
@@ -1579,7 +1579,11 @@ sub action_update {
}
# don't do anything if we have been invoced in a strange way
if (!@todo) {
- tlwarn("tlmgr update: please specify a list of packages or --all.\n");
+ if ($opts{"self"}) {
+ info("tlmgr: no updates for tlmgr present.\n");
+ } else {
+ tlwarn("tlmgr update: please specify a list of packages or --all.\n");
+ }
}
if (!$opts{"self"}) {
@@ -1973,7 +1977,8 @@ sub action_update {
}
my $restart_tlmgr = 0;
- if ($opts{"self"} && $infra_update_done && $other_updates_asked_for) {
+ if ($opts{"self"} && @critical &&
+ $infra_update_done && $other_updates_asked_for) {
# weed out the --self argument from the saved arguments
@::SAVEDARGV = grep (!m/^-?-self$/, @::SAVEDARGV);
$restart_tlmgr = 1;