* ItemByRepoDB is not a dictionary
This commit is contained in:
+2
-2
@@ -67,8 +67,8 @@ class SourceDB(object):
|
|||||||
except pisi.itembyrepodb.NotfoundError, e:
|
except pisi.itembyrepodb.NotfoundError, e:
|
||||||
raise NotfoundError(name)
|
raise NotfoundError(name)
|
||||||
|
|
||||||
def pkgtosrc(self, name):
|
def pkgtosrc(self, name, txn = None):
|
||||||
return self.dpkgtosrc[name]
|
return self.dpkgtosrc.get_item(name, txn=txn)
|
||||||
|
|
||||||
def add_spec(self, spec, repo, txn = None):
|
def add_spec(self, spec, repo, txn = None):
|
||||||
assert not spec.errors()
|
assert not spec.errors()
|
||||||
|
|||||||
Reference in New Issue
Block a user