diff options
author | scarabeus <scarabeus@gentoo.org> | 2010-11-02 14:20:49 +0000 |
---|---|---|
committer | scarabeus <scarabeus@gentoo.org> | 2010-11-02 14:20:49 +0000 |
commit | 2a93698dc517c1e9f84dac3fabddbc6f1212b11c (patch) | |
tree | d13142ea541474114f233b164085d853649385bd /pym/gentoolkit/eshowkw | |
parent | Fix typos in previous commit. (diff) | |
download | gentoolkit-2a93698dc517c1e9f84dac3fabddbc6f1212b11c.tar.gz gentoolkit-2a93698dc517c1e9f84dac3fabddbc6f1212b11c.tar.bz2 gentoolkit-2a93698dc517c1e9f84dac3fabddbc6f1212b11c.zip |
Die correctly when called indirectly with no package specified.
svn path=/trunk/gentoolkit/; revision=846
Diffstat (limited to 'pym/gentoolkit/eshowkw')
-rw-r--r-- | pym/gentoolkit/eshowkw/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py index 0ea4973..72be2f1 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -77,7 +77,7 @@ def process_args(argv): return parser.parse_args(args=argv) -def main(argv): +def main(argv, indirect = False): global ignore_slots, bold, order, topper #opts parsing @@ -96,7 +96,7 @@ def main(argv): package = opts.package # equery support - if argv[0] == 'equery' and len(package) <= 0: + if indirect and len(package) <= 0: msg_err = 'No packages specified' raise SystemExit(msg_err) |