fix pkg_desc args

This commit is contained in:
Dimitris Zlatanidis 2015-02-05 07:31:16 +02:00
parent 9b78262ed7
commit 660b834691

View file

@ -305,7 +305,7 @@ class ArgParse(object):
tag = self.args[3][len('--color='):]
if self.args[1] in _m.repositories and tag in colors:
PkgDesc(self.args[2], self.args[1], tag).view()
if (len(self.args) > 1 and self.args[0] == '-p' and
elif (len(self.args) > 1 and self.args[0] == '-p' and
self.args[1] not in _m.repositories):
usage(self.args[1])
else: