comps-wrapper: Return IDs instead of yum.comps.Group
We never need anything more than the ID, so passing around a big complicated object is not necessary. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
c5fcab2aa5
commit
20005adb98
@ -46,5 +46,5 @@ class GatherSourceComps(pungi.phases.gather.source.GatherSourceBase):
|
||||
comps.filter_groups(variant.groups)
|
||||
|
||||
for i in comps.get_comps_groups():
|
||||
groups.add(i.groupid)
|
||||
groups.add(i)
|
||||
return set(), groups
|
||||
|
@ -45,7 +45,8 @@ class CompsWrapper(object):
|
||||
self.comps_file = comps_file
|
||||
|
||||
def get_comps_groups(self):
|
||||
return self.comps.get_groups()
|
||||
"""Return a list of group IDs."""
|
||||
return [group.groupid for group in self.comps.get_groups()]
|
||||
|
||||
def write_comps(self, comps_obj=None, target_file=None):
|
||||
if not comps_obj:
|
||||
|
Loading…
Reference in New Issue
Block a user