mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-11 18:37:25 +08:00
Merge #1365 Allow components to be reused from module builds even if the buildrequires commit hashes changed for the changed-and-after rebuild strategy
This commit is contained in:
@@ -117,9 +117,7 @@ def get_reusable_module(db_session, module):
|
||||
previous_module_build = previous_module_build.filter(
|
||||
models.ModuleBuild.rebuild_strategy.in_(["all", "changed-and-after"])
|
||||
)
|
||||
previous_module_build = previous_module_build.filter_by(
|
||||
ref_build_context=module.ref_build_context
|
||||
)
|
||||
|
||||
previous_module_build = previous_module_build.first()
|
||||
|
||||
if previous_module_build:
|
||||
|
||||
@@ -1019,12 +1019,8 @@ def submit_module_build(db_session, username, mmd, params):
|
||||
scratch=params.get("scratch"),
|
||||
srpms=params.get("srpms"),
|
||||
)
|
||||
(
|
||||
module.ref_build_context,
|
||||
module.build_context,
|
||||
module.runtime_context,
|
||||
module.context,
|
||||
) = module.contexts_from_mmd(module.modulemd)
|
||||
module.build_context, module.runtime_context, module.context = \
|
||||
module.contexts_from_mmd(module.modulemd)
|
||||
module.context += context_suffix
|
||||
|
||||
all_modules_skipped = False
|
||||
|
||||
Reference in New Issue
Block a user