summaryrefslogtreecommitdiff
path: root/buildstream/_metaelement.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-15 16:12:40 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-17 22:54:58 +0900
commit59813ab1fe9c00c1f59a853f9b607d8f1ad9b315 (patch)
treef531eb499fda114f1eda892532a3577a5db4b062 /buildstream/_metaelement.py
parente2c2d4eee83be80ad15dedb6736bb3f49966e661 (diff)
downloadbuildstream-59813ab1fe9c00c1f59a853f9b607d8f1ad9b315.tar.gz
_loader.py / _metaelement.py: Pass along the selected variant
Dont lose the selected variant of elements, pass them along to the metaelement at load time.
Diffstat (limited to 'buildstream/_metaelement.py')
-rw-r--r--buildstream/_metaelement.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/_metaelement.py b/buildstream/_metaelement.py
index bc8f36a71..d7462cc4b 100644
--- a/buildstream/_metaelement.py
+++ b/buildstream/_metaelement.py
@@ -28,6 +28,7 @@ class MetaElement():
# Args:
# name: The resolved element name
# kind: The element kind
+ # variant: The element variant, or None
# provenance: The provenance of the element
# sources: An array of MetaSource objects
# config: The configuration data for the element
@@ -36,8 +37,9 @@ class MetaElement():
# env_nocache: List of environment vars which should not be considered in cache keys
# public: Public domain data dictionary
#
- def __init__(self, name, kind, provenance, sources, config, variables, environment, env_nocache, public):
+ def __init__(self, name, kind, variant, provenance, sources, config, variables, environment, env_nocache, public):
self.name = name
+ self.variant = variant
self.kind = kind
self.provenance = provenance
self.sources = sources