summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2020-05-12 12:13:05 +0000
committerBenjamin Schubert <contact@benschubert.me>2020-05-12 15:52:00 +0000
commit830e2142ff9f2688c04119df5be8efebc2649dca (patch)
tree9ffca9cc20d5f5651f6486553637e6d89b47bf4b /src/buildstream/element.py
parent1ff22fb98d58f1264a2af0650e40dcaaaa99dabc (diff)
downloadbuildstream-830e2142ff9f2688c04119df5be8efebc2649dca.tar.gz
source.py: Allow access to element's variable
This automatically expands the variables from the element into the sources config
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 67a915e48..fa39eba12 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -901,7 +901,7 @@ class Element(Plugin):
# Instantiate sources and generate their keys
for meta_source in meta.sources:
meta_source.first_pass = meta.is_junction
- source = meta.project.create_source(meta_source, first_pass=meta.first_pass)
+ source = meta.project.create_source(meta_source, variables=element.__variables, first_pass=meta.first_pass)
redundant_ref = source._load_ref()