mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-11 10:34:30 +08:00
Generate buildsys.repo.done locally
This commit is contained in:
@@ -298,6 +298,18 @@ class CoprBuildEnd(KojiBuildChange):
|
||||
self.copr = copr
|
||||
|
||||
|
||||
class CoprRepoDone(object):
|
||||
"""There is actually no repo.done message in Copr
|
||||
This is a class for constructing buildsys.repo.done
|
||||
and triggering it locally"""
|
||||
def __init__(self, copr):
|
||||
self.copr = copr
|
||||
|
||||
def publish(self):
|
||||
msg = {"tag": "{}-build".format(self.copr)}
|
||||
publish("repo.done", msg, conf, "buildsys")
|
||||
|
||||
|
||||
class MBSModule(BaseMessage):
|
||||
""" A class that inherits from BaseMessage to provide a message
|
||||
object for a module event generated by module_build_service
|
||||
|
||||
Reference in New Issue
Block a user