From 4bb11adcb87558146cb1bc627a154f763a78f939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 23 Mar 2006 12:17:15 +0000 Subject: [PATCH] * implement missing get_spec_repo --- pisi/sourcedb.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pisi/sourcedb.py b/pisi/sourcedb.py index afe6a82f..2937994d 100644 --- a/pisi/sourcedb.py +++ b/pisi/sourcedb.py @@ -61,6 +61,12 @@ class SourceDB(object): except pisi.itembyrepodb.NotfoundError, e: raise NotfoundError(name) + def get_spec_repo(self, name, repo=None, txn = None): + try: + return self.d.get_item_repo(name, repo, txn) + except pisi.itembyrepodb.NotfoundError, e: + raise NotfoundError(name) + def pkgtosrc(self, name): return self.dpkgtosrc[name]