diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index dc21f55..74785ac 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -396,7 +396,8 @@ class AutopkgtestPolicy(BasePolicy): verdict = PolicyVerdict.REJECTED_TEMPORARILY self.logger.info('%s hasn''t been built on arch %s, delay autopkgtest there', source_name, arch) excuse.add_verdict_info(verdict, "arch:%s not built yet, autopkgtest delayed there" % arch) - elif arch in excuse.unsatisfiable_on_archs: + elif (arch in excuse.unsatisfiable_on_archs and + arch not in excuse.policy_info['depends'].get('skip_dep_check', [])): self.logger.info('%s is uninstallable on arch %s, not running autopkgtest there', source_name, arch) excuse.addinfo("uninstallable on arch %s, not running autopkgtest there" % arch) else: diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index fca22df..998d58c 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -883,6 +883,8 @@ class DependsPolicy(BasePolicy): # so the autopkgtest policy knows not to try to run tests excuse.add_verdict_info(verdict, "%s/%s has unsatisfiable dependency, but %s so never mind." % ( pkg_name, arch, skip_dep_check_reason)) + # let the autopkgtest policy see that we did this + deps_info.setdefault('skip_dep_check', []).append(arch) continue verdict = PolicyVerdict.REJECTED_PERMANENTLY excuse.add_verdict_info(verdict, "%s/%s has unsatisfiable dependency" % (