Transition module build to failed if PDC wasn't updated

This allows resume... otherwise we're stuck in building.

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Lubos Kocman
2016-10-17 13:21:55 +02:00
committed by Nils Philippsen
parent dbcc33edae
commit 614100163d

View File

@@ -106,7 +106,7 @@ def wait(config, session, msg):
dependencies, tag = _get_deps_and_tag()
except ValueError:
log.exception("Failed to get module info from PDC. Max retries reached.")
build.transition(config, state="build") # Wait for the buildroot to be ready.a
build.transition(config, state="failed")
session.commit()
raise