diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-05-12 12:13:05 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-05-12 12:13:05 +0000 |
commit | b847563a59bb70fd515618f3938f3d08b0a9971b (patch) | |
tree | ea650636a45e293fd24a9d9057b953493bf63590 /src/buildstream/element.py | |
parent | eef74e422ad4d2b76bae5cd543b95526ead47015 (diff) | |
download | buildstream-bschubert/allow-source-variables-access.tar.gz |
source.py: Allow access to element's variablebschubert/allow-source-variables-access
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.py | 2 |
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() |