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)