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

Class InternalPackageSet

source code

    object --+        
             |        
    PackageSet --+    
                 |    
EditablePackageSet --+
                     |
                    InternalPackageSet

Instance Methods [hide private]
 
__init__(self, initial_atoms=None, allow_wildcard=False, allow_repo=True)
Repo atoms are allowed more often than not, so it makes sense for this class to allow them by default.
source code
 
clear(self) source code
 
load(self) source code
 
write(self) source code

Inherited from EditablePackageSet: add, remove, removePackageAtoms, replace, update

Inherited from PackageSet: __bool__, __contains__, __iter__, __nonzero__, containsCPV, findAtomForPackage, getAtoms, getMetadata, getNonAtoms, iterAtomsForPackage, supportsOperation

Inherited from PackageSet (private): _load, _setAtoms, _updateAtomMap

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

Class Variables [hide private]

Inherited from PackageSet: description

Inherited from PackageSet (private): _operations

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, initial_atoms=None, allow_wildcard=False, allow_repo=True)
(Constructor)

source code 

Repo atoms are allowed more often than not, so it makes sense for this class to allow them by default. The Atom constructor and isvalidatom() functions default to allow_repo=False, which is sufficient to ensure that repo atoms are prohibited when necessary.

Overrides: object.__init__

load(self)

source code 
Overrides: PackageSet.load

write(self)

source code 
Overrides: EditablePackageSet.write