From 59633a92b57c2e1a40ea826bd31a932d8de4ec32 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 27 Jan 2019 06:55:49 +0000 Subject: [PATCH] Clone all_buildarchs before mutating it Signed-off-by: Niels Thykier --- britney2/policies/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 0aabaaf..f1a5f91 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -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)