* ItemByRepoDB is not a dictionary

This commit is contained in:
Eray Özkural
2006-03-23 14:55:05 +00:00
parent 8362605989
commit 97aa48329c
+2 -2
View File
@@ -67,8 +67,8 @@ class SourceDB(object):
except pisi.itembyrepodb.NotfoundError, e:
raise NotfoundError(name)
def pkgtosrc(self, name):
return self.dpkgtosrc[name]
def pkgtosrc(self, name, txn = None):
return self.dpkgtosrc.get_item(name, txn=txn)
def add_spec(self, spec, repo, txn = None):
assert not spec.errors()