_emerge.resolver.DbapiProvidesIndex module

class _emerge.resolver.DbapiProvidesIndex.DbapiProvidesIndex(db)

Bases: object

The DbapiProvidesIndex class is used to wrap existing dbapi interfaces, index packages by the sonames that they provide, and implement the dbapi.match method for SonameAtom instances. Since this class acts as a wrapper, it can be used conditionally, so that soname indexing overhead is avoided when soname dependency resolution is disabled.

Since it’s possible for soname atom match results to consist of packages with multiple categories or names, it is essential that Package.__lt__ behave meaningfully when Package.cp is dissimilar, so that match results will be correctly ordered by version for each value of Package.cp.

_copy_attrs = ('aux_get', 'aux_update', 'categories', 'cpv_all', 'cpv_exists', 'cp_all', 'cp_list', 'getfetchsizes', 'settings', '_aux_cache_keys', '_clear_cache', '_cpv_sort_ascending', '_iuse_implicit_cnstr', '_pkg_str', '_pkg_str_aux_keys')
_match_soname(atom)
_provides_inject(pkg)
match(atom, use_cache=<class 'DeprecationWarning'>)
class _emerge.resolver.DbapiProvidesIndex.PackageDbapiProvidesIndex(db)

Bases: _emerge.resolver.DbapiProvidesIndex.DbapiProvidesIndex

This class extends DbapiProvidesIndex in order to make it suitable for wrapping a PackageVirtualDbapi instance.

_copy_attrs = ('aux_get', 'aux_update', 'categories', 'cpv_all', 'cpv_exists', 'cp_all', 'cp_list', 'getfetchsizes', 'settings', '_aux_cache_keys', '_clear_cache', '_cpv_sort_ascending', '_iuse_implicit_cnstr', '_pkg_str', '_pkg_str_aux_keys', 'clear', 'get', '_cpv_map')
_match_soname(atom)
_provides_inject(pkg)
clear()
cpv_inject(pkg)
cpv_remove(pkg)
match(atom, use_cache=<class 'DeprecationWarning'>)
match_pkgs(atom)