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.
master
Tim Andersson 5 months ago
parent e6db31c010
commit 522adc7f7c
No known key found for this signature in database
GPG Key ID: 50AF67504D9E703D

@ -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:

Loading…
Cancel
Save