mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-05 08:46:20 +01:00
FIx style
This commit is contained in:
parent
77f21cc764
commit
fa7b425a40
2 changed files with 9 additions and 7 deletions
|
@ -164,17 +164,19 @@ 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], indexing=True,
|
||||
installed=False)
|
||||
PackageManager(binary=None).package_list(self.args[1],
|
||||
INDEX=True,
|
||||
installed=False)
|
||||
elif self.args[2] == '--installed':
|
||||
PackageManager(binary=None).list(self.args[1], indexing=False,
|
||||
installed=True)
|
||||
PackageManager(binary=None).package_list(self.args[1],
|
||||
INDEX=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], indexing=False,
|
||||
installed=False)
|
||||
PackageManager(None).package_list(self.args[1], INDEX=False,
|
||||
installed=False)
|
||||
elif (len(self.args) > 1 and self.args[0] == '-l' and
|
||||
self.args[1] not in _m.repositories):
|
||||
usage(self.args[1])
|
||||
|
|
|
@ -268,7 +268,7 @@ class PackageManager(object):
|
|||
bol = eol = "\n"
|
||||
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
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue