mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 03:41:08 +00:00
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.
This commit is contained in:
parent
e6db31c010
commit
522adc7f7c
@ -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…
x
Reference in New Issue
Block a user