From 3b2eb5fffb44a83627a8978f99ef184347497369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Fri, 24 Mar 2006 14:24:31 +0000 Subject: [PATCH] * introduce back the optional argument to remove item --- pisi/itembyrepodb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pisi/itembyrepodb.py b/pisi/itembyrepodb.py index 4f220749..dca5fd37 100644 --- a/pisi/itembyrepodb.py +++ b/pisi/itembyrepodb.py @@ -155,9 +155,10 @@ class ItemByRepoDB(object): self.d.put(name, s, txn) self.d.txn_proc(p, txn) - def remove_item(self, name, txn = None): + def remove_item(self, name, repo = None, txn = None): def p(txn): - repo = self.which_repo(name, txn=txn) + if repo == None: + repo = self.which_repo(name, txn=txn) self.remove_item_repo(name, repo, txn=txn) self.d.txn_proc(p, txn)