Do not write images.json if all related phases skipped
JIRA: COMPOSE-3870 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
2cbd75803a
commit
6be2cf5118
@ -412,6 +412,14 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None):
|
|||||||
image_checksum_phase.stop()
|
image_checksum_phase.stop()
|
||||||
|
|
||||||
pungi.metadata.write_compose_info(compose)
|
pungi.metadata.write_compose_info(compose)
|
||||||
|
if not (
|
||||||
|
buildinstall_phase.skip()
|
||||||
|
and ostree_installer_phase.skip()
|
||||||
|
and createiso_phase.skip()
|
||||||
|
and liveimages_phase.skip()
|
||||||
|
and livemedia_phase.skip()
|
||||||
|
and image_build_phase.skip()
|
||||||
|
):
|
||||||
compose.im.dump(compose.paths.compose.metadata("images.json"))
|
compose.im.dump(compose.paths.compose.metadata("images.json"))
|
||||||
osbs_phase.dump_metadata()
|
osbs_phase.dump_metadata()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user