From 1ee4a4ba3a91e27515967d5e2daaedf664f10c78 Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Sun, 27 Jan 2019 11:43:18 +0100 Subject: _artifactcache.py: don't leak the project specific remote caches the code for initializing remotes added the project specific remote caches to the global list instead of making a copy. Fixes #618 --- buildstream/_artifactcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache.py index 48ab278c4..de63d30f1 100644 --- a/buildstream/_artifactcache.py +++ b/buildstream/_artifactcache.py @@ -467,7 +467,7 @@ class ArtifactCache(): # on_failure (callable): Called if we fail to contact one of the caches. # def initialize_remotes(self, *, on_failure=None): - remote_specs = self.global_remote_specs + remote_specs = list(self.global_remote_specs) for project in self.project_remote_specs: remote_specs += self.project_remote_specs[project] -- cgit v1.2.1