portage._sets.dbapi module

class portage._sets.dbapi.AgeSet(vardb, mode='older', age=7)

Bases: portage._sets.dbapi.EverythingSet

_aux_keys = ('BUILD_TIME',)
_filter(atom)
_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 SLOT atoms to match all installed packages'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.CategorySet(category, dbapi, only_visible=True)

Bases: portage._sets.base.PackageSet

classmethod _builderGetRepository(options, repositories)
classmethod _builderGetVisible(options)
_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()
classmethod multiBuilder(options, settings, trees)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.ChangedDepsSet(portdb=None, vardb=None)

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 = 'Package set which contains all installed packages for which the vdb *DEPEND entries are outdated compared to corresponding portdb entries.'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.DateSet(vardb, date, mode='older')

Bases: portage._sets.dbapi.EverythingSet

_aux_keys = ('BUILD_TIME',)
_filter(atom)
_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 SLOT atoms to match all installed packages'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.DowngradeSet(portdb=None, vardb=None)

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 = 'Package set which contains all packages for which the highest visible ebuild version is lower than the currently installed version.'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.EverythingSet(vdbapi, **kwargs)

Bases: portage._sets.base.PackageSet

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

Update self._atommap for specific atoms or all atoms.

containsCPV(cpv)
description = 'Package set which contains SLOT atoms to match all installed packages'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.OwnerSet(vardb=None, exclude_files=None, files=None)

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 = 'Package set which contains all packages that own one or more files.'
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, exclude_paths=None)

All paths must begin with a slash, and must not include EROOT. Supports globs.

classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.RebuiltBinaries(vardb, bindb=None)

Bases: portage._sets.dbapi.EverythingSet

_aux_keys = ('BUILD_TIME',)
_filter(atom)
_load()
_operations = ('merge',)
_setAtoms(atoms)
_updateAtomMap(atoms=None)

Update self._atommap for specific atoms or all atoms.

containsCPV(cpv)
description = 'Package set which contains SLOT atoms to match all installed packages'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.SubslotChangedSet(portdb=None, vardb=None)

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 = 'Package set which contains all packages for which the subslot of the highest visible ebuild is different than the currently installed version.'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.UnavailableBinaries(vardb, metadatadb=None)

Bases: portage._sets.dbapi.EverythingSet

_filter(atom)
_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 installed packages for which corresponding binary packages are not available.'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.UnavailableSet(vardb, metadatadb=None)

Bases: portage._sets.dbapi.EverythingSet

_filter(atom)
_load()
_operations = ['unmerge']
_setAtoms(atoms)
_updateAtomMap(atoms=None)

Update self._atommap for specific atoms or all atoms.

containsCPV(cpv)
description = 'Package set which contains all installed packages for which there are no visible ebuilds corresponding to the same $CATEGORY/$PN:$SLOT.'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
class portage._sets.dbapi.VariableSet(vardb, metadatadb=None, variable=None, includes=None, excludes=None)

Bases: portage._sets.dbapi.EverythingSet

_filter(atom)
_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 match specified values of a specified variable.'
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()
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)