entropy.spm: new method in PortagePlugin, get_set_atoms

this method returns a list (set) of atoms contained into a Portage
package set object. Those objects are returned, in a dict form,
by get_sets()
This commit is contained in:
Fabio Erculiani
2009-04-01 12:13:47 +02:00
parent cddf5ddc33
commit b0b3cdc9ab

View File

@@ -1416,6 +1416,10 @@ class PortagePlugin:
for pkg_set in builtin_pkg_sets: mysets.pop(pkg_set)
return mysets
def get_set_atoms(self, pkgset_obj):
config = self.get_set_config()
if config == None: return []
return config.getSetAtoms(pkgset_obj).copy()
def get_sets_expanded(self, builtin_sets = True):
config = self.get_set_config()