mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
Merge #498 Only check if a component is reusable from a previous module build with the same name and stream
This commit is contained in:
@@ -781,6 +781,7 @@ def get_reusable_component(session, module, component_name):
|
||||
# Find the latest module that is in the done or ready state
|
||||
previous_module_build = session.query(models.ModuleBuild)\
|
||||
.filter_by(name=mmd.name)\
|
||||
.filter_by(stream=mmd.stream)\
|
||||
.filter(models.ModuleBuild.state.in_([3, 5]))\
|
||||
.filter(models.ModuleBuild.scmurl.isnot(None))\
|
||||
.order_by(models.ModuleBuild.time_completed.desc())\
|
||||
|
||||
Reference in New Issue
Block a user