From b75d91713e71745a9ea50f2123627af67c806e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Tue, 22 May 2007 16:18:29 +0000 Subject: [PATCH] [merge] cleanup from -catbox branch --- pisi/repodb.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pisi/repodb.py b/pisi/repodb.py index c5276aa7..f6676115 100644 --- a/pisi/repodb.py +++ b/pisi/repodb.py @@ -10,8 +10,6 @@ # Please read the COPYING file. # -import os, fcntl - import gettext __trans = gettext.translation('pisi', fallback=True) _ = __trans.ugettext @@ -19,8 +17,6 @@ _ = __trans.ugettext import pisi import pisi.lockeddbshelve as shelve import pisi.context as ctx -import pisi.packagedb as packagedb -import pisi.util as util class Error(pisi.Error): pass @@ -101,9 +97,9 @@ class RepoDB(object): name = str(name) def proc(txn): self.d.delete("repo-" + name, txn) - list = self.d.get("order", txn) - list.remove(name) - self.d.put("order", list, txn) + l = self.d.get("order", txn) + l.remove(name) + self.d.put("order", l, txn) ctx.packagedb.remove_repo(name, txn=txn) ctx.sourcedb.remove_repo(name, txn=txn) ctx.componentdb.remove_repo(name, txn=txn)