Clone all_buildarchs before mutating it

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2019-01-27 06:55:49 +00:00
parent 2c9e0b9b97
commit 59633a92b5
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

View File

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