* fix: don't init database two places where it's not needed (help, build)

This commit is contained in:
Eray Özkural
2005-10-09 20:15:10 +00:00
parent 54b1d45cb3
commit 276f08e971
+2 -2
View File
@@ -191,7 +191,7 @@ If run without parameters, it prints the general help."""
printu(self.parser.format_help())
return
self.init()
self.init(database = False)
for arg in self.args:
obj = Command.get_command(arg, True)
@@ -270,7 +270,7 @@ fetch all necessary files and build the package for you.
self.help()
return
self.init()
self.init(database = False)
ctx.ui.info('Output directory: %s\n' % ctx.config.options.output_dir)
for arg in self.args:
pisi.api.build(arg, self.authInfo)