summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-20 22:04:42 +0000
committerKarl Berry <karl@freefriends.org>2016-04-20 22:04:42 +0000
commit0977df7d314abf862bcbc9f0c231157c499e5016 (patch)
treea80a837b58fa871502bfc070e93d3b624815a070 /Master
parenta4f22423a8ddb08b9e03213e7ac78e0c82373158 (diff)
(action_update): don't say "no updates available"
(in general) if we already said "no self-updates" available due to --self. git-svn-id: svn://tug.org/texlive/trunk@40639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index c2fad3f1e62..8c419844a45 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -2573,7 +2573,7 @@ sub action_update {
# don't do anything if we have been invoked in a strange way
if (!@todo) {
if ($opts{"self"}) {
- info("$prg: no updates for tlmgr present.\n");
+ info("$prg: no self-updates for tlmgr available.\n");
} else {
tlwarn("$prg update: please specify a list of packages, --all, or --self.\n");
return ($F_ERROR);
@@ -3418,8 +3418,9 @@ sub action_update {
}
# if a real update from default disk location didn't find anything,
- # warn if nothing is updated.
- if (!(@new || @updated)) {
+ # warn if nothing is updated. Unless they said --self, in which case
+ # we've already reported it.
+ if (!(@new || @updated) && ! $opts{"self"}) {
info("$prg: no updates available\n");
if ($remotetlpdb->media ne "NET"
&& $remotetlpdb->media ne "virtual"