From 96bf0f7a70bc0f0f8cafbf757a9030b2168295ec Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 17 Nov 2010 04:54:31 +0000 Subject: tlmgr update --list --self now shows only package updates that are critical git-svn-id: svn://tug.org/texlive/trunk@20464 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/texlive/tlmgr.pl | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'Master/texmf') diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index fd5eddd1703..9fa7d699ed0 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -2153,10 +2153,16 @@ sub action_update { my @todo; if ($opts{"list"}) { - if ($opts{"all"} || !@ARGV) { + if ($opts{"all"}) { @todo = $localtlpdb->list_packages; + } elsif ($opts{"self"}) { + @todo = @critical; } else { - @todo = @ARGV; + if (@ARGV) { + @todo = @ARGV; + } else { + @todo = $localtlpdb->list_packages; + } } } elsif ($opts{"self"} && @critical) { @todo = @critical; @@ -5166,9 +5172,15 @@ written to the terminal. This is a more detailed report than C<--list>. =item B<--list> [I] Concisely list the packages which would be updated, newly installed, or -removed, without actually changing anything. If no package is given, -this acts like C<--list --all>, otherwise it lists only updates to the -packages given as arguments (and its dependencies). +removed, without actually changing anything. +If C<--all> is given, it lists all available updates. +If C<--self> is given, but not C<--all> lists only updates the the +critical packages (tlmgr, texlive infrastructure, perl on Windows, etc.). +If neither C<--all> nor C<--self> is given, and in addition no I +is passed on the command line, then C<--all> is assumed (so +C behaves like C). +If neither C<--all> nor C<--self> is given, but package names passed +on the command line, those packages are checked for updates. =item B<--exclude> I -- cgit v1.2.3