diff options
-rw-r--r-- | pym/portage/sets/base.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pym/portage/sets/base.py b/pym/portage/sets/base.py index 4de3e847d..370b03d45 100644 --- a/pym/portage/sets/base.py +++ b/pym/portage/sets/base.py @@ -219,3 +219,16 @@ class InternalPackageSet(EditablePackageSet): def write(self): pass +class DummyPackageSet(PackageSet): + def __init__(self, atoms=None): + super(DummyPackageSet, self).__init__() + if atoms: + self._setAtoms(atoms) + + def load(self): + pass + + def singleBuilder(cls, options, settings, trees): + atoms = options.get("packages", "").split() + return DummyPackageSet(atoms=atoms) + singleBuilder = classmethod(singleBuilder) |