Generate buildsys.repo.done locally

This commit is contained in:
Jakub Kadlčík
2017-03-21 07:59:35 +01:00
parent 6ec3a63517
commit a24b49e162
3 changed files with 28 additions and 2 deletions

View File

@@ -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