From 9d62c590c78eb71a46f97a4f783ed20f6630e666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sun, 9 Apr 2006 18:42:45 +0000 Subject: [PATCH] * fix sourcedb tests * fix: remove_spec was a wreck --- pisi/sourcedb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pisi/sourcedb.py b/pisi/sourcedb.py index 93b1f001..83486617 100644 --- a/pisi/sourcedb.py +++ b/pisi/sourcedb.py @@ -79,14 +79,14 @@ class SourceDB(object): self.dpkgtosrc.add_item(pkg.name, name, repo, txn) self.d.txn_proc(proc, txn) - def remove_specfile(self, name, repo, txn = None): + def remove_spec(self, name, repo, txn = None): name = str(name) def proc(txn): assert self.has_spec(name, txn=txn) - spec = self.d.get_item_repo(name, repo, txn) + spec = self.d.get_item(name, repo, txn) self.d.remove_item(name, txn=txn) for pkg in spec.packages: - self.dpkgtosrc.remove_item_repo(pkg.name, name, repo, txn) + self.dpkgtosrc.remove_item_repo(pkg.name, repo, txn) self.d.txn_proc(proc, txn)