Groups default setting should be based on variant if possible

This commit is contained in:
Mustafa Gezen 2022-08-04 04:46:43 +02:00
parent 79fa1c0648
commit 9e91db39a1

View File

@ -280,10 +280,12 @@ def main(comps_path: str, variants_path: str, output_path: str):
groupbase = variants[variant_id]
if group.text not in groupbase:
continue
groupind = groupbase[group.text]
groupind = groupbase[group.text].copy()
for arch_group in groupind.keys():
if arch_group not in groups:
groups[arch_group] = []
if 'default' in group.attrib:
groupind[arch_group].default = group.attrib['default'] == 'true'
groups[arch_group].append(groupind[arch_group])
elif child.tag == 'environments':
for environment in child: