summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Striker <s.striker@striker.nl>2020-07-11 15:19:01 +0200
committerSander Striker <s.striker@striker.nl>2020-07-11 15:19:01 +0200
commit5395789b01761022cc4653574ebe517c45c7e260 (patch)
tree86efdc1889969e34f61312acc5ab7cca2f077423
parent7ff7fb5cde1b491c2e2a321b705d695f48980cfe (diff)
downloadbuildstream-sstriker-normalize-variable-element-name.tar.gz
Use the normalized name for the element_name variable. As this is usedsstriker-normalize-variable-element-name
in the build directories as well, it helps with certain build systems that have strict naming requirements in their filesystem layout. * src/buildstream/element.py (Element.__init__): Set element-name to normal_name.
-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 6a0fa5fab..ec38be58e 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -283,7 +283,7 @@ class Element(Plugin):
# Collect the composited variables and resolve them
variables = self.__extract_variables(project, meta)
- variables["element-name"] = self.name
+ variables["element-name"] = self.normal_name
self.__variables = Variables(variables)
# Collect the composited environment now that we have variables