From 276f08e971c97d72b00c597195e9cf27b7d9911e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sun, 9 Oct 2005 20:15:10 +0000 Subject: [PATCH] * fix: don't init database two places where it's not needed (help, build) --- pisi/cli/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 9e228b66..f1083d53 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -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)