From 585c87f00c7dc880d35d7a371655d866b5054300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 8 Dec 2005 14:31:45 +0000 Subject: [PATCH] * fix: don't try to init db for just confirm --- pisi/cli/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 4e66ff46..16c515bc 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -651,7 +651,7 @@ If package specs are given, they should be the names of package dirs under /var/ def run(self): - self.init() + self.init(comar=False, database=False) if self.args: for package_fn in self.args: @@ -661,6 +661,7 @@ If package specs are given, they should be the names of package dirs under /var/ if ctx.ui.confirm(_('Rebuild PISI databases?')): self.finalize() import os + #FIXME: how good is deleting *all* databases? for db in os.listdir(ctx.config.db_dir()): os.unlink(pisi.util.join_path(ctx.config.db_dir(), db)) self.init(database=True)