diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-04 23:45:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-04 23:45:39 +0000 |
commit | b0f56d42fd0a34fb4afdac35f6b58625e2b67057 (patch) | |
tree | 48a261d2a0d63d27125242d56da7d96fcf171a57 /Master/texmf-dist | |
parent | 5f4bec1307357fbebb74f765a07f5b8466693422 (diff) |
update -n same as update --list -n
git-svn-id: svn://tug.org/texlive/trunk@44452 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 8 |
1 files changed, 6 insertions, 2 deletions
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(); |