From e2b196dd4b08e00375d196289fa645452d519adc Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Fri, 20 Mar 2020 17:27:33 +0000 Subject: [PATCH] Don't check implict depends when build is missing --- britney2/policies/policy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 66c9ebb..f982ce7 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -1638,6 +1638,14 @@ class ImplicitDependencyPolicy(BasePolicy): # this item is not currently in testing: no implicit dependency return verdict + if excuse.hasreason("missingbuild"): + # if the build is missing, the policy would treat this as if the + # binaries would be removed, which would give incorrect (and + # confusing) info + info = "missing build, not checking implict dependencies on %s" % (arch) + excuse.add_detailed_info(info) + return verdict + source_suite = item.suite source_name = item.package target_suite = self.suite_info.target_suite