From 522adc7f7c6356d1d677853978c76bb6f3a02433 Mon Sep 17 00:00:00 2001 From: Tim Andersson Date: Fri, 9 Aug 2024 15:58:06 +0100 Subject: [PATCH] fix: get binary architecture from correct object for useless i386 check After using the logging from the previous commit, we figured out which variable to use to get the architecture for the binary packages of a source package. This commit amends the issue by checking said variable. This commit also removes the excess logging implemented in the former commit. --- britney2/policies/autopkgtest.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 454c3ee..13c0ec0 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -752,16 +752,7 @@ class AutopkgtestPolicy(BasePolicy): if arch == "i386": all_binaries_arch_all = True for pkg_id in srcinfo.binaries: - self.logger.info('Binary %s has arch %s for source package %s', - pkg_id.package_name, - pkg_id.architecture, - src, - ) - self.logger.info('binaries_info reports arch as %s for binary package %s', - binaries_info[pkg_id.package_name].architecture, - pkg_id.package_name, - ) - if pkg_id.architecture != 'all': + if binaries_info[pkg_id.package_name].architecture != 'all': all_binaries_arch_all = False break if all_binaries_arch_all: