From 5395789b01761022cc4653574ebe517c45c7e260 Mon Sep 17 00:00:00 2001 From: Sander Striker Date: Sat, 11 Jul 2020 15:19:01 +0200 Subject: 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 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 -- cgit v1.2.1