From cb33b0278dc41a54d20534d531aab9a5b9bc0f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 27 Sep 2018 15:19:32 +0200 Subject: [PATCH] unified_isos: Add extra variants to metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ář --- pungi_utils/unified_isos.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pungi_utils/unified_isos.py b/pungi_utils/unified_isos.py index d6f7ab08..b0a94fec 100644 --- a/pungi_utils/unified_isos.py +++ b/pungi_utils/unified_isos.py @@ -360,6 +360,11 @@ class UnifiedISO(object): variant_img = copy.deepcopy(img) variant_img.parent = im 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 = getattr(self.ci.variants[variant.uid].paths, paths_attr) path = paths.get(tree_arch, os.path.join(variant.uid, tree_arch, "iso"))