'portage.data',
'portage.data:lchown,ostype,portage_gid,portage_uid,secpass,' + \
'uid,userland,userpriv_groups,wheelgid',
- 'portage.dbapi:dbapi',
+ 'portage.dbapi',
'portage.dbapi.bintree:bindbapi,binarytree',
'portage.dbapi.porttree:close_portdbapi_caches,FetchlistDict,' + \
'portagetree,portdbapi',
#getting categories from an external file now
categories = [grabfile(os.path.join(x, "categories")) for x in locations]
+ category_re = dbapi.dbapi._category_re
self.categories = tuple(sorted(
x for x in stack_lists(categories, incremental=1)
- if dbapi._category_re.match(x) is not None))
+ if category_re.match(x) is not None))
del categories
archlist = [grabfile(os.path.join(x, "arch.list")) for x in locations]
def match(atom, dbapi, match_type="default"):
"""
- wrapper that calls revisionMatch() or portage.dbapi.match() depending on
+ wrapper that calls revisionMatch() or portage.dbapi.dbapi.match() depending on
the given atom.
@type atom: string
@param atom: a <~ or >~ atom or a normal portage atom that contains the atom to match against
- @type dbapi: portage.dbapi
+ @type dbapi: portage.dbapi.dbapi
@param dbapi: one of the portage databases to use as information source
@type match_type: string
@param match_type: if != "default" passed as first argument to dbapi.xmatch
@type revisionAtom: string
@param revisionAtom: a <~ or >~ atom that contains the atom to match against
- @type dbapi: portage.dbapi
+ @type dbapi: portage.dbapi.dbapi
@param dbapi: one of the portage databases to use as information source
@type match_type: string
@param match_type: if != "default" passed as first argument to portdb.xmatch