mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-17 04:31:34 +00:00
Clone all_buildarchs before mutating it
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
2c9e0b9b97
commit
59633a92b5
@ -799,7 +799,7 @@ class BuildDependsPolicy(BasePolicy):
|
|||||||
return [arch for arch in self.options.architectures if arch in archs]
|
return [arch for arch in self.options.architectures if arch in archs]
|
||||||
|
|
||||||
# first try the all buildarch
|
# first try the all buildarch
|
||||||
checkarchs = self._all_buildarch
|
checkarchs = list(self._all_buildarch)
|
||||||
# then try the architectures where this source has arch specific
|
# then try the architectures where this source has arch specific
|
||||||
# binaries (in the order of the architecture config file)
|
# 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)
|
checkarchs.extend(arch for arch in self.options.architectures if arch in archs and arch not in checkarchs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user