mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-13 19:41:29 +00:00
For b-d-indep track best result and archs per result
Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
parent
fa44a3f968
commit
3f575a1cd0
@ -850,6 +850,8 @@ class BuildDependsPolicy(BasePolicy):
|
|||||||
excuses_info = defaultdict(list)
|
excuses_info = defaultdict(list)
|
||||||
blockers = defaultdict(list)
|
blockers = defaultdict(list)
|
||||||
arch_results = {}
|
arch_results = {}
|
||||||
|
result_archs = defaultdict(list)
|
||||||
|
bestresult = BuildDepResult.FAILED
|
||||||
check_archs = self._get_check_archs(relevant_archs,dep_type);
|
check_archs = self._get_check_archs(relevant_archs,dep_type);
|
||||||
for arch in check_archs:
|
for arch in check_archs:
|
||||||
# retrieve the binary package from the specified suite and arch
|
# retrieve the binary package from the specified suite and arch
|
||||||
@ -895,6 +897,15 @@ class BuildDependsPolicy(BasePolicy):
|
|||||||
if arch_results[arch] < BuildDepResult.DEPENDS:
|
if arch_results[arch] < BuildDepResult.DEPENDS:
|
||||||
arch_results[arch] = BuildDepResult.DEPENDS
|
arch_results[arch] = BuildDepResult.DEPENDS
|
||||||
|
|
||||||
|
if dep_type == DependencyType.BUILD_DEPENDS_INDEP:
|
||||||
|
if arch_results[arch] < bestresult:
|
||||||
|
bestresult = arch_results[arch]
|
||||||
|
result_archs[arch_results[arch]].append(arch)
|
||||||
|
if bestresult == BuildDepResult.OK:
|
||||||
|
# we found an architecture where the b-deps-indep are
|
||||||
|
# satisfied in the target suite, so we can stop
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
for arch in check_archs:
|
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)
|
verdict = self._add_info_for_arch(arch, excuses_info, blockers, arch_results, dep_type, target_suite, source_suite, excuse, verdict)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user