From 1da740bd8b394d7c4ba32b957e480b672386d64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 9 Aug 2024 13:29:34 +0200 Subject: [PATCH] Strip multibuild flavors from monitoring --- opensuse-monitor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opensuse-monitor.py b/opensuse-monitor.py index 18e5581..89f9449 100755 --- a/opensuse-monitor.py +++ b/opensuse-monitor.py @@ -36,10 +36,12 @@ def listen_events(): and "package" in body and body["project"] == "openSUSE:Factory" ): - if "/" in body["package"]: + # Strip multibuild flavors + package = body["package"].partition(':')[0] + if "/" in package: return - (MY_TASKS_DIR / body["package"]).touch() + (MY_TASKS_DIR / package).touch() print(" [x] %r:%r" % (method.routing_key, body["package"])) channel.basic_consume(queue_name, callback, auto_ack=True)