Strip multibuild flavors from monitoring
This commit is contained in:
parent
b3107ba3bf
commit
1da740bd8b
@ -36,10 +36,12 @@ def listen_events():
|
|||||||
and "package" in body
|
and "package" in body
|
||||||
and body["project"] == "openSUSE:Factory"
|
and body["project"] == "openSUSE:Factory"
|
||||||
):
|
):
|
||||||
if "/" in body["package"]:
|
# Strip multibuild flavors
|
||||||
|
package = body["package"].partition(':')[0]
|
||||||
|
if "/" in package:
|
||||||
return
|
return
|
||||||
|
|
||||||
(MY_TASKS_DIR / body["package"]).touch()
|
(MY_TASKS_DIR / package).touch()
|
||||||
print(" [x] %r:%r" % (method.routing_key, body["package"]))
|
print(" [x] %r:%r" % (method.routing_key, body["package"]))
|
||||||
|
|
||||||
channel.basic_consume(queue_name, callback, auto_ack=True)
|
channel.basic_consume(queue_name, callback, auto_ack=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user