Equo/query:

- check if myopts is empty


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2336 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-08-26 10:53:36 +00:00
parent dd33480926
commit 772f974dff

View File

@@ -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:])