unified_isos: Add extra variants to metadata
Each unified ISO contains all toplevel variants, and they are listed in the metadata multiple times (once for each variant). In each case the metadata should include all other variants that are included on the image. JIRA: COMPOSE-2918 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
aab2fc4519
commit
cb33b0278d
@ -360,6 +360,11 @@ class UnifiedISO(object):
|
|||||||
variant_img = copy.deepcopy(img)
|
variant_img = copy.deepcopy(img)
|
||||||
variant_img.parent = im
|
variant_img.parent = im
|
||||||
variant_img.subvariant = variant.id
|
variant_img.subvariant = variant.id
|
||||||
|
variant_img.additional_variants = [
|
||||||
|
var.uid
|
||||||
|
for var in self.ci.get_variants(recursive=False)
|
||||||
|
if var.uid != variant_uid
|
||||||
|
]
|
||||||
paths_attr = 'isos' if arch != 'src' else 'source_isos'
|
paths_attr = 'isos' if arch != 'src' else 'source_isos'
|
||||||
paths = getattr(self.ci.variants[variant.uid].paths, paths_attr)
|
paths = getattr(self.ci.variants[variant.uid].paths, paths_attr)
|
||||||
path = paths.get(tree_arch, os.path.join(variant.uid, tree_arch, "iso"))
|
path = paths.get(tree_arch, os.path.join(variant.uid, tree_arch, "iso"))
|
||||||
|
Loading…
Reference in New Issue
Block a user