summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-10-11 00:59:10 +0000
committerNorbert Preining <preining@logic.at>2017-10-11 00:59:10 +0000
commit67f46b7acff64b3a6c4c99917d09df3aa4053d1f (patch)
treed938027ee58071a2f0f3086a4fa5598c0dc42391
parent39075ed65010e8a44d13cda51a4d59e39f7f1cb1 (diff)
tlmgr update: add --no-restart option
git-svn-id: svn://tug.org/texlive/trunk@45519 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index b07a8e199e4..711494ef45b 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -334,6 +334,7 @@ my %action_specification = (
"no-auto-remove" => 1,
"no-depends" => 1,
"no-depends-at-all" => 1,
+ "no-restart" => 1,
"reinstall-forcibly-removed" => 1,
"self" => 1,
},
@@ -3216,7 +3217,7 @@ sub action_update {
}
my $restart_tlmgr = 0;
- if ($opts{"self"} && @critical &&
+ if ($opts{"self"} && @critical && !$opts{'no-restart'} &&
$infra_update_done && $other_updates_asked_for) {
# weed out the --self argument from the saved arguments
@::SAVEDARGV = grep (!m/^-?-self$/, @::SAVEDARGV);
@@ -6217,7 +6218,7 @@ sub action_shell {
print "OK\n";
}
# make sure that we restart after having called update --self!
- if (($cmd eq 'update') && $opts{'self'}) {
+ if (($cmd eq 'update') && $opts{'self'} && !$opts{'no-restart'}) {
print "tlmgr has been updated, restarting!\n";
exec("tlmgr", @::SAVEDARGV);
}