* fix sourcedb tests
* fix: remove_spec was a wreck
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user