mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-10 20:48:40 +01:00
FIx style
This commit is contained in:
parent
77f21cc764
commit
fa7b425a40
2 changed files with 9 additions and 7 deletions
|
@ -164,16 +164,18 @@ 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], indexing=True,
|
PackageManager(binary=None).package_list(self.args[1],
|
||||||
|
INDEX=True,
|
||||||
installed=False)
|
installed=False)
|
||||||
elif self.args[2] == '--installed':
|
elif self.args[2] == '--installed':
|
||||||
PackageManager(binary=None).list(self.args[1], indexing=False,
|
PackageManager(binary=None).package_list(self.args[1],
|
||||||
|
INDEX=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], indexing=False,
|
PackageManager(None).package_list(self.args[1], INDEX=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):
|
||||||
|
|
|
@ -268,7 +268,7 @@ class PackageManager(object):
|
||||||
bol = eol = "\n"
|
bol = eol = "\n"
|
||||||
Msg().pkg_not_found(bol, pkg, message, eol)
|
Msg().pkg_not_found(bol, pkg, message, eol)
|
||||||
|
|
||||||
def list(self, repo, INDEX, installed):
|
def package_list(self, repo, INDEX, installed):
|
||||||
'''
|
'''
|
||||||
List with the installed packages
|
List with the installed packages
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue