From 7217c22b42f5fbbed49afd0d338091ff4143cfef Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 12 Nov 2017 11:46:17 +0000 Subject: [PATCH] get_dependency_solvers: The "foo:any" modifier can also appear in B-D relations Signed-off-by: Niels Thykier --- britney2/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/britney2/utils.py b/britney2/utils.py index 333a0fd..7e35a07 100644 --- a/britney2/utils.py +++ b/britney2/utils.py @@ -779,11 +779,11 @@ def get_dependency_solvers(block, binaries_s_a, provides_s_a, *, build_depends=F # - :native is ok iff the target is arch:any if archqual == 'native' and package.architecture != 'all': packages.append(name) - else: - # Multi-arch handling for regular dependencies - # - :any is ok iff the target has "M-A: allowed" - if archqual == 'any' and package.multi_arch == 'allowed': - packages.append(name) + + # Multi-arch handling for both build-dependencies and regular dependencies + # - :any is ok iff the target has "M-A: allowed" + if archqual == 'any' and package.multi_arch == 'allowed': + packages.append(name) # look for the package in the virtual packages list and loop on them for prov, prov_version in provides_s_a.get(name, empty_set):