Package portage :: Package _sets :: Module base :: Class PackageSet
[hide private]

Class PackageSet

source code

object --+
         |
        PackageSet
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, allow_wildcard=False, allow_repo=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__contains__(self, atom) source code
 
__iter__(self) source code
 
__bool__(self) source code
 
__nonzero__(self) source code
 
supportsOperation(self, op) source code
 
_load(self) source code
 
getAtoms(self) source code
 
getNonAtoms(self) source code
 
_setAtoms(self, atoms) source code
 
load(self) source code
 
containsCPV(self, cpv) source code
 
getMetadata(self, key) source code
 
_updateAtomMap(self, atoms=None)
Update self._atommap for specific atoms or all atoms.
source code
 
findAtomForPackage(self, pkg, modified_use=None)
Return the best match for a given package from the arguments, or None if there are no matches.
source code
 
iterAtomsForPackage(self, pkg)
Find all matching atoms for a given package.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _operations = ['merge']
  description = 'generic package set'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, allow_wildcard=False, allow_repo=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

findAtomForPackage(self, pkg, modified_use=None)

source code 

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.

iterAtomsForPackage(self, pkg)

source code 

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.