PR#1696: sync_koji_build_tags: consider previous batches

Merges #1696
https://pagure.io/fm-orchestrator/pull-request/1696
This commit is contained in:
Mike McLean
2021-04-14 07:10:02 -04:00

View File

@@ -402,7 +402,7 @@ def sync_koji_build_tags():
models.ModuleBuild.state == models.BUILD_STATES["build"]
).all()
for module_build in module_builds:
complete_components = module_build.current_batch(koji.BUILD_STATES["COMPLETE"])
complete_components = module_build.up_to_current_batch(state=koji.BUILD_STATES["COMPLETE"])
for c in complete_components:
# In case the component is tagged in the build tag and
# also tagged in the final tag (or it is build_time_only