From fa47d9edba8d7937526d894b8b7a0ef9c0790590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 26 Feb 2019 10:39:59 +0100 Subject: [PATCH] Read koji event from config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can be useful for archiving configuration to freeze the koji package set to a particular event. JIRA: COMPOSE-3278 Signed-off-by: Lubomír Sedlář --- pungi/checks.py | 1 + pungi/compose.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi/checks.py b/pungi/checks.py index 0e0868c5..137f5b0e 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -784,6 +784,7 @@ def make_schema(): "pdc_insecure": {"deprecated": "Koji is queried instead"}, "koji_profile": {"type": "string"}, + "koji_event": {"type": "number"}, "pkgset_koji_tag": {"$ref": "#/definitions/strings"}, "pkgset_koji_builds": {"$ref": "#/definitions/strings"}, diff --git a/pungi/compose.py b/pungi/compose.py index a3c96fa8..88fc002d 100644 --- a/pungi/compose.py +++ b/pungi/compose.py @@ -119,7 +119,7 @@ class Compose(kobo.log.LoggingBase): self.skip_phases = skip_phases or [] self.just_phases = just_phases or [] self.old_composes = old_composes or [] - self.koji_event = koji_event + self.koji_event = koji_event or conf.get("koji_event") self.notifier = notifier # intentionally upper-case (visible in the code)