From fa44a3f9685ad65e0ea56f3f07da644254f27744 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Fri, 4 Jan 2019 23:00:53 +0000 Subject: [PATCH] Implement get_check_archs for build-depends-indep Signed-off-by: Ivo De Decker --- britney2/policies/policy.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index db188e3..1e07e86 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -791,6 +791,15 @@ class BuildDependsPolicy(BasePolicy): if dep_type == DependencyType.BUILD_DEPENDS: return [arch for arch in self.options.architectures if arch in archs] + # first try the all buildarch + checkarchs = self._all_buildarch + # then try the architectures where this source has arch specific + # binaries (in the order of the architecture config file) + checkarchs.extend(arch for arch in self.options.architectures if arch in archs and arch not in checkarchs) + # then try all other architectures + checkarchs.extend(arch for arch in self.options.architectures if arch not in checkarchs) + return checkarchs + def _add_info_for_arch(self, arch, excuses_info, blockers, results, dep_type, target_suite, source_suite, excuse, verdict): if arch in excuses_info: for excuse_text in excuses_info[arch]: