From 1c115eee112aba576c581c50594ac1504724417d Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Fri, 4 Jan 2019 23:04:16 +0000 Subject: [PATCH] For build-depends-indep, only add best result This is based on the first architecture that had this result. Signed-off-by: Ivo De Decker --- britney2/policies/policy.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 8844ce4..91c8f40 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -906,12 +906,18 @@ class BuildDependsPolicy(BasePolicy): # satisfied in the target suite, so we can stop break - - for arch in check_archs: + if dep_type == DependencyType.BUILD_DEPENDS_INDEP: + arch = result_archs[bestresult][0] + excuse.addhtml("Checking %s on %s"%(dep_type.get_description(),arch)) + build_deps_info['check-indep-build-depends-on-arch'] = arch verdict = self._add_info_for_arch(arch, excuses_info, blockers, arch_results, dep_type, target_suite, source_suite, excuse, verdict) - if unsat_bd: - build_deps_info['unsatisfiable-arch-build-depends'] = unsat_bd + else: + for arch in check_archs: + verdict = self._add_info_for_arch(arch, excuses_info, blockers, arch_results, dep_type, target_suite, source_suite, excuse, verdict) + + if unsat_bd: + build_deps_info['unsatisfiable-arch-build-depends'] = unsat_bd return verdict