From e1c79083aff9b70f025968f7b1723ec03559370f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 9 Mar 2006 13:46:58 +0000 Subject: [PATCH] * remove and close packagedb on removing repo (oops) --- pisi.e3p | 18 +++++++++++++----- pisi/packagedb.py | 1 + pisi/repodb.py | 3 ++- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/pisi.e3p b/pisi.e3p index b604bde1..751716ce 100644 --- a/pisi.e3p +++ b/pisi.e3p @@ -1,7 +1,7 @@ - + Python @@ -466,6 +466,14 @@ tools calc-build-order.py + + tools + find_unowned_files.py + + + tests + repodbtests.py + @@ -507,10 +515,10 @@ {'standardLayout': 1} - - - - + + + + diff --git a/pisi/packagedb.py b/pisi/packagedb.py index 85d8d997..100e399d 100644 --- a/pisi/packagedb.py +++ b/pisi/packagedb.py @@ -117,6 +117,7 @@ def get_db(name): return pisi.packagedb.packagedbs[name] def remove_db(name): + pisi.packagedb.packagedbs[name].close() del pisi.packagedb.packagedbs[name] #FIXME: erase database file? diff --git a/pisi/repodb.py b/pisi/repodb.py index 01cf1867..489bb02a 100644 --- a/pisi/repodb.py +++ b/pisi/repodb.py @@ -103,7 +103,8 @@ class RepoDB(object): self.d.delete("repo-" + name, txn) list = self.d.get("order", txn) list.remove(name) - self.d.put("order", list, txn) + self.d.put("order", list, txn) + packagedb.remove_db(name) self.d.txn_proc(proc, txn) db = None