[merge] cleanup from -catbox branch
This commit is contained in:
+1
-7
@@ -17,18 +17,12 @@ we basically store everything in PackageInfo class
|
|||||||
yes, we are cheap
|
yes, we are cheap
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import fcntl
|
|
||||||
import types
|
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
_ = __trans.ugettext
|
_ = __trans.ugettext
|
||||||
|
|
||||||
import pisi
|
import pisi
|
||||||
import pisi.util as util
|
|
||||||
import pisi.context as ctx
|
import pisi.context as ctx
|
||||||
import pisi.lockeddbshelve as shelve
|
|
||||||
import pisi.itembyrepodb
|
import pisi.itembyrepodb
|
||||||
|
|
||||||
class Error(pisi.Error):
|
class Error(pisi.Error):
|
||||||
@@ -61,7 +55,7 @@ class PackageDB(object):
|
|||||||
def get_package(self, name, repo=None, txn = None):
|
def get_package(self, name, repo=None, txn = None):
|
||||||
try:
|
try:
|
||||||
return self.d.get_item(name, repo, txn=txn)
|
return self.d.get_item(name, repo, txn=txn)
|
||||||
except pisi.itembyrepodb.NotfoundError, e:
|
except pisi.itembyrepodb.NotfoundError:
|
||||||
raise Error(_('Package %s not found') % name)
|
raise Error(_('Package %s not found') % name)
|
||||||
|
|
||||||
def get_package_repo(self, name, repo=None, txn = None):
|
def get_package_repo(self, name, repo=None, txn = None):
|
||||||
|
|||||||
Reference in New Issue
Block a user