Fix state for determining if continue building components in current batch

The original code before changing to is_unbuilt is to check if any
component builds in current batch has state None. This patch fixes that.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
Chenxiong Qi
2019-10-17 22:35:52 +08:00
parent cab9cb8ee3
commit 1ab259ba77

View File

@@ -171,7 +171,7 @@ def start_next_batch_build(config, module, db_session, builder, components=None)
# Check that if there is something to build in current batch before starting
# the new one. If there is, continue building current batch.
if any(c.is_unbuilt for c in current_batch):
if any(c.is_waiting_for_build for c in current_batch):
log.info("Continuing building batch %d", module.batch)
return continue_batch_build(config, module, db_session, builder, components)