summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 6711a5c83..71c0601be 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -265,7 +265,7 @@ class Element(Plugin):
# Grab public domain data declared for this instance
unexpanded_public = self.__extract_public(meta)
- self.__public = self.__expand_splits(unexpanded_public)
+ self.__public = _element.expand_splits(self.__variables, unexpanded_public)
self.__dynamic_public = None
# Collect the composited element configuration and
@@ -2662,21 +2662,6 @@ class Element(Plugin):
return element_public
- # Expand the splits in the public data using the Variables in the element
- def __expand_splits(self, element_public):
- element_bst = element_public.get_mapping('bst', default={})
- element_splits = element_bst.get_mapping('split-rules', default={})
-
- # Resolve any variables in the public split rules directly
- for domain, splits in element_splits.items():
- splits = [
- self.__variables.subst(split.strip())
- for split in splits.as_str_list()
- ]
- element_splits[domain] = splits
-
- return element_public
-
def __init_splits(self):
bstdata = self.get_public_data('bst')
splits = bstdata.get_mapping('split-rules')