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:
@@ -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:])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user