* fix: info cmd takes 1 arg, run help after api init

This commit is contained in:
Eray Özkural
2005-12-15 01:23:40 +00:00
parent 107c12268c
commit 64df32e1c9
+5 -3
View File
@@ -526,11 +526,13 @@ Usage: info <package1> <package2> ... <packagen>
help=_("Show only paths."))
def run(self):
if len(self.args) != 2:
self.help()
return
self.init(True)
if len(self.args) != 1:
self.help()
return
for arg in self.args:
if ctx.componentdb.has_component(arg):
component = ctx.componentdb.get_component(arg)