mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +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
|
if (len(self.args) == 3 and self.args[0] == '-l' and
|
||||||
self.args[1] in _m.repositories):
|
self.args[1] in _m.repositories):
|
||||||
if self.args[2] == '--index':
|
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)
|
installed=False)
|
||||||
elif self.args[2] == '--installed':
|
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)
|
installed=True)
|
||||||
else:
|
else:
|
||||||
usage('')
|
usage('')
|
||||||
elif (len(self.args) == 2 and self.args[0] == '-l' and
|
elif (len(self.args) == 2 and self.args[0] == '-l' and
|
||||||
self.args[1] in _m.repositories):
|
self.args[1] in _m.repositories):
|
||||||
PackageManager(None).list(self.args[1], index=False,
|
PackageManager(None).list(self.args[1], indexing=False,
|
||||||
installed=False)
|
installed=False)
|
||||||
elif (len(self.args) > 1 and self.args[0] == '-l' and
|
elif (len(self.args) > 1 and self.args[0] == '-l' and
|
||||||
self.args[1] not in _m.repositories):
|
self.args[1] not in _m.repositories):
|
||||||
|
|
Loading…
Add table
Reference in a new issue