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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user