portage._sets.libs module

class portage._sets.libs.LibraryConsumerSet(vardbapi, debug=False)

Bases: portage._sets.base.PackageSet

_load()
_operations = ['merge', 'unmerge']
_setAtoms(atoms)
_updateAtomMap(atoms=None)

Update self._atommap for specific atoms or all atoms.

containsCPV(cpv)
description = 'generic package set'
findAtomForPackage(pkg, modified_use=None)

Return the best match for a given package from the arguments, or None if there are no matches. This matches virtual arguments against the PROVIDE metadata. This can raise an InvalidDependString exception if an error occurs while parsing PROVIDE.

getAtoms()
getMetadata(key)
getNonAtoms()
iterAtomsForPackage(pkg)

Find all matching atoms for a given package. This matches virtual arguments against the PROVIDE metadata. This will raise an InvalidDependString exception if PROVIDE is invalid.

load()
mapPathsToAtoms(paths)
supportsOperation(op)
class portage._sets.libs.LibraryFileConsumerSet(vardbapi, files, **kargs)

Bases: portage._sets.libs.LibraryConsumerSet

Note: This does not detect libtool archive (*.la) files that consume the specified files (revdep-rebuild is able to detect them).

_load()
_operations = ['merge', 'unmerge']
_setAtoms(atoms)
_updateAtomMap(atoms=None)

Update self._atommap for specific atoms or all atoms.

containsCPV(cpv)
description = 'Package set which contains all packages that consume the specified library file(s).'
findAtomForPackage(pkg, modified_use=None)

Return the best match for a given package from the arguments, or None if there are no matches. This matches virtual arguments against the PROVIDE metadata. This can raise an InvalidDependString exception if an error occurs while parsing PROVIDE.

getAtoms()
getMetadata(key)
getNonAtoms()
iterAtomsForPackage(pkg)

Find all matching atoms for a given package. This matches virtual arguments against the PROVIDE metadata. This will raise an InvalidDependString exception if PROVIDE is invalid.

load()
mapPathsToAtoms(paths)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.libs.PreservedLibraryConsumerSet(vardbapi, debug=False)

Bases: portage._sets.libs.LibraryConsumerSet

_load()
_operations = ['merge', 'unmerge']
_setAtoms(atoms)
_updateAtomMap(atoms=None)

Update self._atommap for specific atoms or all atoms.

containsCPV(cpv)
description = 'generic package set'
findAtomForPackage(pkg, modified_use=None)

Return the best match for a given package from the arguments, or None if there are no matches. This matches virtual arguments against the PROVIDE metadata. This can raise an InvalidDependString exception if an error occurs while parsing PROVIDE.

getAtoms()
getMetadata(key)
getNonAtoms()
iterAtomsForPackage(pkg)

Find all matching atoms for a given package. This matches virtual arguments against the PROVIDE metadata. This will raise an InvalidDependString exception if PROVIDE is invalid.

load()
mapPathsToAtoms(paths)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)