portage._sets.files module

class portage._sets.files.ConfigFileSet(filename)

Bases: portage._sets.base.PackageSet

_load()
_operations = ['merge']
_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.files.StaticFileSet(filename, greedy=False, dbapi=None)

Bases: portage._sets.base.EditablePackageSet

_load()
_operations = ['merge', 'unmerge']
_repopath_match = re.compile('.*\\$\\{repository:(?P<reponame>.+)\\}.*')
_repopath_sub = re.compile('\\$\\{repository:(?P<reponame>.+)\\}')
_setAtoms(atoms)
_updateAtomMap(atoms=None)

Update self._atommap for specific atoms or all atoms.

_validate(atom)
add(atom)
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)
remove(atom)
removePackageAtoms(cp)
replace(atoms)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
update(atoms)
write()
class portage._sets.files.WorldSelectedPackagesSet(eroot)

Bases: portage._sets.base.EditablePackageSet

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

Update self._atommap for specific atoms or all atoms.

_validate(atom)
add(atom)
cleanPackage(vardb, cpv)

Before calling this function you should call lock and load. After calling this function you should call unlock.

containsCPV(cpv)
description = 'Set of packages that were directly installed by the user'
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()
lock()
remove(atom)
removePackageAtoms(cp)
replace(atoms)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
unlock()
update(atoms)
write()
class portage._sets.files.WorldSelectedSet(eroot)

Bases: portage._sets.base.EditablePackageSet

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

Update self._atommap for specific atoms or all atoms.

add(atom)
cleanPackage(vardb, cpv)
containsCPV(cpv)
description = 'Set of packages and subsets that were directly installed by the user'
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()
lock()
remove(atom)
removePackageAtoms(cp)
replace(atoms)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
unlock()
update(atoms)
write()
class portage._sets.files.WorldSelectedSetsSet(eroot)

Bases: portage._sets.base.EditablePackageSet

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

Update self._atommap for specific atoms or all atoms.

_validate(setname)
add(atom)
containsCPV(cpv)
description = 'Set of sets that were directly installed by the user'
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()
lock()
remove(atom)
removePackageAtoms(cp)
replace(atoms)
classmethod singleBuilder(options, settings, trees)
supportsOperation(op)
unlock()
update(atoms)
write()