mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Fix repository error message
This commit is contained in:
parent
a7c2740187
commit
cfb5f75901
1 changed files with 8 additions and 6 deletions
|
@ -265,12 +265,14 @@ class ArgParse(object):
|
||||||
usage("")
|
usage("")
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
if (len(self.args) > 1 and len(self.args) <= 5 and
|
if (len(self.args) > 1 and len(self.args) <= 5 and
|
||||||
self.args[0] in options and
|
self.args[0] in options):
|
||||||
self.args[1] in self.meta.repositories):
|
if self.args[1] in self.meta.repositories:
|
||||||
PackageManager(binary=None).package_list(self.args[1],
|
PackageManager(binary=None).package_list(self.args[1],
|
||||||
name,
|
name,
|
||||||
INDEX,
|
INDEX,
|
||||||
installed)
|
installed)
|
||||||
|
else:
|
||||||
|
usage(self.args[1])
|
||||||
else:
|
else:
|
||||||
usage("")
|
usage("")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue