def __init__(self, pathname=None, cache=None):
GObject.GObject.__init__(self)
# initialize at creation time to avoid spurious AttributeError
self._use_agent = False
self._use_axi = False
if pathname is None:
pathname = softwarecenter.paths.XAPIAN_PATH
self._db_pathname = pathname
if cache is None:
cache = get_pkg_info()
self._aptcache = cache
self._additional_databases = []
# the xapian values as read from /var/lib/apt-xapian-index/values
self._axi_values = {}
# we open one db per thread, thread names are reused eventually
# so no memory leak
self._db_per_thread = {}
self._parser_per_thread = {}
self._axi_stamp_monitor = None
评论列表
文章目录