This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch sstriker-normalize-variable-element-name
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 5395789b01761022cc4653574ebe517c45c7e260
Author: Sander Striker <[email protected]>
AuthorDate: Sat Jul 11 15:19:01 2020 +0200

    Use the normalized name for the element_name variable.  As this is used
    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.
---
 src/buildstream/element.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 6a0fa5f..ec38be5 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

Reply via email to