mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
FIx style
This commit is contained in:
parent
1ec298716e
commit
77f21cc764
1 changed files with 3 additions and 3 deletions
|
@ -164,16 +164,16 @@ class ArgParse(object):
|
|||
if (len(self.args) == 3 and self.args[0] == '-l' and
|
||||
self.args[1] in _m.repositories):
|
||||
if self.args[2] == '--index':
|
||||
PackageManager(binary=None).list(self.args[1], index=True,
|
||||
PackageManager(binary=None).list(self.args[1], indexing=True,
|
||||
installed=False)
|
||||
elif self.args[2] == '--installed':
|
||||
PackageManager(binary=None).list(self.args[1], index=False,
|
||||
PackageManager(binary=None).list(self.args[1], indexing=False,
|
||||
installed=True)
|
||||
else:
|
||||
usage('')
|
||||
elif (len(self.args) == 2 and self.args[0] == '-l' and
|
||||
self.args[1] in _m.repositories):
|
||||
PackageManager(None).list(self.args[1], index=False,
|
||||
PackageManager(None).list(self.args[1], indexing=False,
|
||||
installed=False)
|
||||
elif (len(self.args) > 1 and self.args[0] == '-l' and
|
||||
self.args[1] not in _m.repositories):
|
||||
|
|
Loading…
Add table
Reference in a new issue