diff options
author | Norbert Preining <preining@logic.at> | 2010-09-28 14:23:18 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2010-09-28 14:23:18 +0000 |
commit | cce309c8bb877f3ad84d0b94eecaa8bcb5b811e9 (patch) | |
tree | 90ef1664acd984b7d8ef012bf45372cf20d43f0c /Master/texmf | |
parent | 0c9f1096da7596ad4714ceb64afdb28e4d7f6c4d (diff) |
fix the broken check, we simply have to check if none of --list,
--all, --self, or <pkgs> is given
git-svn-id: svn://tug.org/texlive/trunk@19931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 7b2f88deadc..6941e472548 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -1814,12 +1814,14 @@ sub action_update { # make a quick check on command line arguments to avoid loading # the remote db uselessly. - # [no; --list, at least, needs to be accepted. but don't other - # options also require the remote db? just recommenting for now.] -# if (!(@ARGV || $opts{"all"} || $opts{"self"})) { -# tlwarn("tlmgr update: please specify a list of packages, --all, or --self.\n"); -# return; -# } + # we require: + # if no --list is given: either --self or --all or <pkgs> + # if --list is given: nothing + # other options just change the behaviour + if (!($opts{"list"} || @ARGV || $opts{"all"} || $opts{"self"})) { + tlwarn("tlmgr update: please specify a list of packages, --all, --self, or --list.\n"); + return; + } init_tlmedia(); info("update: dry run, no changes will be made\n") if $opts{"dry-run"}; |