diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-12-05 23:49:45 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-12-05 23:49:45 +0000 |
commit | e14bd6b5de7517d54fe434262052204e64138ebc (patch) | |
tree | 4df6dda6ec4f075318d67d8731d271472ca3a8cf /Master | |
parent | 833084167a57560ab59fe3a151904c512cd3b7aa (diff) |
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
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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; |