diff options
author | Sander Striker <s.striker@striker.nl> | 2020-07-11 15:19:01 +0200 |
---|---|---|
committer | Sander Striker <s.striker@striker.nl> | 2020-07-11 15:19:01 +0200 |
commit | 5395789b01761022cc4653574ebe517c45c7e260 (patch) | |
tree | 86efdc1889969e34f61312acc5ab7cca2f077423 | |
parent | 7ff7fb5cde1b491c2e2a321b705d695f48980cfe (diff) | |
download | buildstream-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.py | 2 |
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 |