Clone all_buildarchs before mutating it

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent 2c9e0b9b97
commit 59633a92b5
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -799,7 +799,7 @@ class BuildDependsPolicy(BasePolicy):
return [arch for arch in self.options.architectures if arch in archs]
# first try the all buildarch
checkarchs = self._all_buildarch
checkarchs = list(self._all_buildarch)
# then try the architectures where this source has arch specific
# binaries (in the order of the architecture config file)
checkarchs.extend(arch for arch in self.options.architectures if arch in archs and arch not in checkarchs)

Loading…
Cancel
Save