summaryrefslogtreecommitdiff
path: root/buildstream/_project.py
diff options
context:
space:
mode:
authorAbderrahim Kitouni <akitouni@gnome.org>2019-01-28 11:01:08 +0100
committerJavier Jardón <jjardon@gnome.org>2019-02-08 16:42:23 +0000
commit24c0de16faec2b8b9bd6a03504ce951dc49afbe2 (patch)
treefa10a359f59c0c5f571a44065871eef286083676 /buildstream/_project.py
parent1ee4a4ba3a91e27515967d5e2daaedf664f10c78 (diff)
downloadbuildstream-24c0de16faec2b8b9bd6a03504ce951dc49afbe2.tar.gz
_project.py: use artifact caches from the parent project for junctionsabderrahim/artifact-cache-junction
This makes a junction use the artifact cache of the parent project before the ones defined for the junction Fixes #401
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r--buildstream/_project.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index 3ec141d58..5f4389edb 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -549,7 +549,15 @@ class Project():
#
# Load artifacts pull/push configuration for this project
- self.artifact_cache_specs = ArtifactCache.specs_from_config_node(config, self.directory)
+ project_specs = ArtifactCache.specs_from_config_node(config, self.directory)
+ override_specs = ArtifactCache.specs_from_config_node(
+ self._context.get_overrides(self.name), self.directory)
+
+ self.artifact_cache_specs = override_specs + project_specs
+
+ if self.junction:
+ parent = self.junction._get_project()
+ self.artifact_cache_specs = parent.artifact_cache_specs + self.artifact_cache_specs
# Load remote-execution configuration for this project
project_specs = SandboxRemote.specs_from_config_node(config, self.directory)