| |
@@ -282,6 +282,21 @@
|
| |
if os.path.isfile(repomd_path):
|
| |
ti.checksums.add(repomd_path, createrepo_checksum, root_dir=os_tree)
|
| |
|
| |
+ for i in variant.get_variants(types=["variant"], arch=arch):
|
| |
+ related_variant = productmd.treeinfo.Variant(ti)
|
| |
+ related_variant.id = i.id
|
| |
+ related_variant.uid = i.uid
|
| |
+ related_variant.name = i.name
|
| |
+ related_variant.type = i.type
|
| |
+
|
| |
+ real_variant = copy.deepcopy(i)
|
| |
+ real_variant.parent = None
|
| |
+
|
| |
+ os_tree = compose.paths.compose.os_tree(arch=arch, variant=variant).rstrip("/") + "/"
|
| |
+ related_variant.paths.packages = relative_path(compose.paths.compose.packages(arch=arch, variant=real_variant, create_dir=False).rstrip("/") + "/", os_tree).rstrip("/") or "."
|
| |
+ related_variant.paths.repository = relative_path(compose.paths.compose.repository(arch=arch, variant=real_variant, create_dir=False).rstrip("/") + "/", os_tree).rstrip("/") or "."
|
| |
+ ti.variants.add(related_variant)
|
| |
+
|
| |
class LoraxProduct(productmd.treeinfo.Release):
|
| |
def _validate_short(self):
|
| |
# HACK: set self.short so .treeinfo produced by lorax can be read
|
| |
I think this resolves https://pagure.io/pungi/issue/1256
It requires https://pagure.io/pungi/pull-request/1257 first.
It provides a clear way to specify, "this variant should also include this other variant in the
.treeinfo
file automatically."