From b0f56d42fd0a34fb4afdac35f6b58625e2b67057 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 4 Jun 2017 23:45:39 +0000 Subject: update -n same as update --list -n git-svn-id: svn://tug.org/texlive/trunk@44452 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 8 ++++++-- 1 file changed, 6 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 e7a684103dc..8ac034b2e53 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -2559,8 +2559,12 @@ sub action_update { # if --list is given: nothing # other options just change the behavior if (!($opts{"list"} || @ARGV || $opts{"all"} || $opts{"self"})) { - tlwarn("$prg update: specify --list, --all, --self, or a list of package names.\n"); - return ($F_ERROR); + if ($opts{"dry-run"}) { + $opts{"list"} = 1; # update -n same as update -n --list + } else { + tlwarn("$prg update: specify --list, --all, --self, or a list of package names.\n"); + return ($F_ERROR); + } } init_tlmedia_or_die(); -- cgit v1.2.3