Fix network argument

This commit is contained in:
Dimitris Zlatanidis 2015-06-13 08:57:05 +03:00
parent e2350d87e7
commit 7821261bd0

View file

@ -261,10 +261,7 @@ class ArgParse(object):
"""View slackbuilds packages
"""
options = ["-n", "--network"]
if (len(self.args) == 3 and self.args[0] in options and
"sbo" in self.meta.repositories):
SBoNetwork(self.args[1]).view()
elif (len(self.args) == 2 and self.args[0] in options and
if (len(self.args) == 2 and self.args[0] in options and
"sbo" in self.meta.repositories):
SBoNetwork(self.args[1]).view()
else: