mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-23 18:21:42 +08:00
Ignore repository builds without the '-build' suffix.
This commit is contained in:
@@ -36,7 +36,11 @@ def done(config, session, msg):
|
||||
""" Called whenever koji rebuilds a repo, any repo. """
|
||||
|
||||
# First, find our ModuleBuild associated with this repo, if any.
|
||||
tag = msg.repo_tag.strip('-build')
|
||||
tag = msg.repo_tag
|
||||
if not tag.endswith('-build'):
|
||||
log.info("Tag %r does not end with '-build' suffix, ignoring" % tag)
|
||||
return
|
||||
tag = tag.strip('-build')
|
||||
module_build = models.ModuleBuild.from_repo_done_event(session, msg)
|
||||
if not module_build:
|
||||
log.info("No module build found associated with koji tag %r" % tag)
|
||||
|
||||
Reference in New Issue
Block a user