From 67f46b7acff64b3a6c4c99917d09df3aa4053d1f Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 11 Oct 2017 00:59:10 +0000 Subject: tlmgr update: add --no-restart option git-svn-id: svn://tug.org/texlive/trunk@45519 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Master') 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); } -- cgit v1.2.3