From 0c897e3cd0a9a4ac36a78134df4f3178937979a6 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Sun, 16 Apr 2006 15:50:13 +0000 Subject: [PATCH] =?UTF-8?q?kaynak=20depo'da=20paket=20bulunamama=20hatas?= =?UTF-8?q?=C4=B1=20(#2376)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/sourcedb.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pisi/sourcedb.py b/pisi/sourcedb.py index c6444227..99b388d6 100644 --- a/pisi/sourcedb.py +++ b/pisi/sourcedb.py @@ -35,9 +35,7 @@ import pisi.repodb from pisi.itembyrepodb import ItemByRepoDB class NotfoundError(pisi.Error): - def __init__(self, spec): - pisi.Error.__init__("Package %s not found" % spec) - self.spec = spec + pass class SourceDB(object): @@ -59,13 +57,13 @@ class SourceDB(object): try: return self.d.get_item(name, repo, txn) except pisi.itembyrepodb.NotfoundError, e: - raise NotfoundError(name) + raise NotfoundError(_("Source package %s not found" % 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) + raise NotfoundError(_("Source package %s not found" % name)) def pkgtosrc(self, name, txn = None): return self.dpkgtosrc.get_item(name, txn=txn)