From e14bd6b5de7517d54fe434262052204e64138ebc Mon Sep 17 00:00:00 2001 From: Piotr Strzelczyk Date: Sat, 5 Dec 2009 23:49:45 +0000 Subject: make 'update -self -all' behave as 'update -all' if there are no -self updates git-svn-id: svn://tug.org/texlive/trunk@16308 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/texlive/tlmgr.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Master/texmf') diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index a8bfa0ac1bd..ad8576e25a8 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -1796,7 +1796,7 @@ sub action_update { } } - if (!$opts{"self"} || ($opts{"self"} && $opts{"list"})) { + if (!($opts{"self"} && @critical) || ($opts{"self"} && $opts{"list"})) { # update all .ARCH dependencies, too, unless $opts{"no-depends-at-all"}: @todo = $tlmediatlpdb->expand_dependencies("-only-arch", $localtlpdb, @todo) unless $opts{"no-depends-at-all"}; @@ -2095,7 +2095,7 @@ sub action_update { } $updated{$pkg} = 1; next; - } elsif (win32() && $opts{"self"}) { + } elsif (win32() && ($pkg =~ m/$CriticalPackagesRegexp/)) { # we pretend that the update happened # in order to calculate file changes properly $updated{$pkg} = 1; -- cgit v1.2.3