/usr/lib/pardus/pisi/sourcedb.py:58: Local variable (e) not used

/usr/lib/pardus/pisi/sourcedb.py:64: Local variable (e) not used

sourcedb.py:23: Imported module (os) not used
sourcedb.py:24: Imported module (fcntl) not used
sourcedb.py:30: Imported module (pisi.util) not used
sourcedb.py:32: Imported module (pisi.lockeddbshelve) not used
This commit is contained in:
S.Çağlar Onur
2007-05-14 00:04:32 +00:00
parent 19155e2668
commit efcbaeac3b
+2 -7
View File
@@ -20,16 +20,11 @@ store a set of repositories in which the source appears.
the actual guy to take is determined from the repo order. the actual guy to take is determined from the repo order.
""" """
import os
import fcntl
import gettext import gettext
__trans = gettext.translation('pisi', fallback=True) __trans = gettext.translation('pisi', fallback=True)
_ = __trans.ugettext _ = __trans.ugettext
import pisi.util as util
import pisi.context as ctx import pisi.context as ctx
import pisi.lockeddbshelve as shelve
import pisi.repodb import pisi.repodb
import pisi.itembyrepodb import pisi.itembyrepodb
@@ -55,13 +50,13 @@ class SourceDB(object):
def get_spec(self, name, repo=None, txn = None): def get_spec(self, name, repo=None, txn = None):
try: try:
return self.d.get_item(name, repo, txn) return self.d.get_item(name, repo, txn)
except pisi.itembyrepodb.NotfoundError, e: except pisi.itembyrepodb.NotfoundError:
raise NotfoundError(_("Source package %s not found") % name) raise NotfoundError(_("Source package %s not found") % name)
def get_spec_repo(self, name, repo=None, txn = None): def get_spec_repo(self, name, repo=None, txn = None):
try: try:
return self.d.get_item_repo(name, repo, txn) return self.d.get_item_repo(name, repo, txn)
except pisi.itembyrepodb.NotfoundError, e: except pisi.itembyrepodb.NotfoundError:
raise NotfoundError(_("Source package %s not found") % name) raise NotfoundError(_("Source package %s not found") % name)
def pkgtosrc(self, name, txn = None): def pkgtosrc(self, name, txn = None):