Fix repository error message

This commit is contained in:
Dimitris Zlatanidis 2016-10-11 11:12:36 +03:00
parent a7c2740187
commit cfb5f75901

View file

@ -265,12 +265,14 @@ class ArgParse(object):
usage("")
raise SystemExit()
if (len(self.args) > 1 and len(self.args) <= 5 and
self.args[0] in options and
self.args[1] in self.meta.repositories):
PackageManager(binary=None).package_list(self.args[1],
name,
INDEX,
installed)
self.args[0] in options):
if self.args[1] in self.meta.repositories:
PackageManager(binary=None).package_list(self.args[1],
name,
INDEX,
installed)
else:
usage(self.args[1])
else:
usage("")