portage.dbapi.IndexedPortdb module

class portage.dbapi.IndexedPortdb.IndexedPortdb(portdb)

Bases: object

A portdbapi interface that uses a package description index to improve performance. If the description index is missing for a particular repository, then all metadata for that repository is obtained using the normal pordbapi.aux_get method.

For performance reasons, the match method only supports package name and version constraints. For the same reason, the xmatch method is not implemented.

_copy_attrs = ('cpv_exists', 'findname', 'getFetchMap', '_aux_cache_keys', '_cpv_sort_ascending', '_have_root_eclass_dir')
_init_index()
aux_get(cpv, attrs, myrepo=None)
cp_all(sort=True)

Returns an ordered iterator instead of a list, so that search results can be displayed incrementally.

match(atom)

For performance reasons, only package name and version constraints are supported, and the returned list is unordered.

match_unordered = True