portage._sets.shell module

class portage._sets.shell.CommandOutputSet(command)

Bases: portage._sets.base.PackageSet

This class creates a PackageSet from the output of a shell command. The shell command should produce one atom per line, that is:

>>> atom1
    atom2
    ...
    atomN
Args:

name: A string that identifies the set. command: A string or sequence identifying the command to run (see the subprocess.Popen documentaion for the format)

_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 singleBuilder(options, settings, trees)
supportsOperation(op)