summaryrefslogtreecommitdiff
path: root/buildstream/buildelement.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r--buildstream/buildelement.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py
index 859b682ad..4776c90d5 100644
--- a/buildstream/buildelement.py
+++ b/buildstream/buildelement.py
@@ -114,11 +114,15 @@ class BuildElement(Element):
def configure(self, node):
self.commands = {}
+ command_names = [prefix + step for step in _command_steps for prefix in _command_prefixes]
- for step in _command_steps:
- for prefix in _command_prefixes:
- command_name = prefix + step
- self.commands[command_name] = self._get_commands(node, command_name)
+ # FIXME: Currently this forcefully validates configurations
+ # for all BuildElement subclasses so they are unable to
+ # extend the configuration
+ self.node_validate(node, command_names)
+
+ for command_name in command_names:
+ self.commands[command_name] = self._get_commands(node, command_name)
def preflight(self):
pass