aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscarabeus <scarabeus@gentoo.org>2010-11-02 14:20:49 +0000
committerscarabeus <scarabeus@gentoo.org>2010-11-02 14:20:49 +0000
commit2a93698dc517c1e9f84dac3fabddbc6f1212b11c (patch)
treed13142ea541474114f233b164085d853649385bd /pym/gentoolkit/eshowkw
parentFix typos in previous commit. (diff)
downloadgentoolkit-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__.py4
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)