summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-10-11 15:27:32 +0000
committerNorbert Preining <preining@logic.at>2017-10-11 15:27:32 +0000
commit0024b39df19531ab14ba86fefe53eb7993a1eb5e (patch)
tree35b2fbad618da5be72ae877ed4d9c45327af2b2d
parent67f46b7acff64b3a6c4c99917d09df3aa4053d1f (diff)
tlmgr: do not warn on disk blabla when in machine readable mode
git-svn-id: svn://tug.org/texlive/trunk@45520 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl18
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 711494ef45b..620e8f3a29b 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -3266,14 +3266,15 @@ sub action_update {
# 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 (!$::machinereadable);
- if ($remotetlpdb->media ne "NET"
- && $remotetlpdb->media ne "virtual"
- && !$opts{"dry-run"}
- && !$opts{"repository"}
- && !$ENV{"TEXLIVE_INSTALL_ENV_NOCHECK"}
- ) {
- tlwarn(<<END_DISK_WARN);
+ if (!$::machinereadable) {
+ info("$prg: no updates available\n");
+ if ($remotetlpdb->media ne "NET"
+ && $remotetlpdb->media ne "virtual"
+ && !$opts{"dry-run"}
+ && !$opts{"repository"}
+ && !$ENV{"TEXLIVE_INSTALL_ENV_NOCHECK"}
+ ) {
+ tlwarn(<<END_DISK_WARN);
$prg: Your installation is set up to look on the disk for updates.
To install from the Internet for this one time only, run:
tlmgr -repository $TeXLiveURL ACTION ARG...
@@ -3282,6 +3283,7 @@ where ACTION is install, update, etc.; see tlmgr -help if needed.
To change the default for all future updates, run:
tlmgr option repository $TeXLiveURL
END_DISK_WARN
+ }
}
}
return ($ret);