Do not fail a module in buildroot_ready when repo is not generated yet.

This commit is contained in:
Jan Kaluza
2017-05-12 10:24:47 +02:00
parent 0ecbadeaad
commit 2c202bcf00

View File

@@ -104,6 +104,11 @@ class KojiModuleBuilder(GenericBuilder):
log.info("%r checking buildroot readiness for "
"repo: %r, tag_id: %r, artifacts: %r, builds: %r" % (
self, repo, tag_id, artifacts, builds))
if not repo:
log.info("Repo is not generated yet, buildroot is not ready yet.")
return False
ready = bool(koji.util.checkForBuilds(
self.koji_session,
tag_id,