Include images info in composeinfo.json
This change requires https://github.com/release-engineering/productmd/pull/150 JIRA: RHELCMP-2296 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
f27b120cfc
commit
4c297beb65
@ -156,6 +156,13 @@ def compose_to_composeinfo(compose):
|
|||||||
var.paths.isos[arch] = relative_path(
|
var.paths.isos[arch] = relative_path(
|
||||||
iso_dir, compose.paths.compose.topdir().rstrip("/") + "/"
|
iso_dir, compose.paths.compose.topdir().rstrip("/") + "/"
|
||||||
).rstrip("/")
|
).rstrip("/")
|
||||||
|
image_dir = compose.paths.compose.image_dir(variant=variant) or ""
|
||||||
|
if image_dir:
|
||||||
|
image_dir = image_dir % {"arch": arch}
|
||||||
|
if os.path.isdir(image_dir):
|
||||||
|
var.paths.images[arch] = relative_path(
|
||||||
|
image_dir, compose.paths.compose.topdir().rstrip("/") + "/"
|
||||||
|
).rstrip("/")
|
||||||
jigdo_dir = (
|
jigdo_dir = (
|
||||||
compose.paths.compose.jigdo_dir(
|
compose.paths.compose.jigdo_dir(
|
||||||
arch=arch, variant=variant, create_dir=False
|
arch=arch, variant=variant, create_dir=False
|
||||||
|
Loading…
Reference in New Issue
Block a user