From b6573fab927ae138af200fbaccdd741624d7eb4a Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Tue, 23 Jun 2020 15:26:10 +0200 Subject: [PATCH] Check if composeinfo-base.json exists before creating it. Previously, we checked only for `compose_dir`, but it makes more sense to really check for `composeinfo-base.json` instead. Signed-off-by: Jan Kaluza --- pungi/scripts/pungi_koji.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi/scripts/pungi_koji.py b/pungi/scripts/pungi_koji.py index 8dc6a136..7631f006 100644 --- a/pungi/scripts/pungi_koji.py +++ b/pungi/scripts/pungi_koji.py @@ -279,7 +279,8 @@ def main(): ) else: compose_dir = opts.compose_dir - if not os.path.exists(compose_dir): + ci_path = os.path.join(compose_dir, "work", "global", "composeinfo-base.json") + if not os.path.exists(ci_path): ci = Compose.get_compose_info( conf, compose_type=compose_type, compose_label=opts.label )