From 772f974dff8ade5542c4969c9a3d4dc4d331fa1a Mon Sep 17 00:00:00 2001 From: lxnay Date: Tue, 26 Aug 2008 10:53:36 +0000 Subject: [PATCH] Equo/query: - check if myopts is empty git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2336 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/text_query.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/text_query.py b/client/text_query.py index 841279101..e513128b5 100644 --- a/client/text_query.py +++ b/client/text_query.py @@ -34,7 +34,7 @@ def query(options): rc = 0 - if len(options) < 1: + if not options: return -10 equoRequestDeep = False @@ -46,6 +46,9 @@ def query(options): if not opt.startswith("-"): myopts.append(opt) + if not myopts: + return -10 + if myopts[0] == "installed": rc = searchInstalledPackages(myopts[1:])