From 7c4ca122231d99428a5bcad9d42d7496677b479a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Tue, 20 Dec 2005 09:12:03 +0000 Subject: [PATCH] * death in june --- pisi/cli/commands.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 0c7db1fc..6e497d0c 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -694,12 +694,9 @@ If package specs are given, they should be the names of package dirs under /var/ #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)) + # construct new database version self.init(database=True) self.rebuild_db() - verfn = util.join_path(pisi.context.config.db_dir(), 'dbversion') - verfile = file(verfn, 'w') - verfile.write(pisi.__dbversion__) - verfile.close() self.finalize()