summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-10-15 13:56:48 +0100
committerBenjamin Schubert <contact@benschubert.me>2019-10-16 13:58:57 +0100
commitabc522cd6a292ef571cafb1b4d4288903690d730 (patch)
tree006d62357a47ee2899cc7fd7ccaf3f1181408456 /src/buildstream/plugins
parentf0c928ed5e0fb61f3dd4e26891a39def0b40be81 (diff)
downloadbuildstream-abc522cd6a292ef571cafb1b4d4288903690d730.tar.gz
element.py: Rework 'node_subst_list' to take the sequence directly
Also rename it to 'node_subst_sequence_vars' to mimic 'node_subst_vars'.
Diffstat (limited to 'src/buildstream/plugins')
-rw-r--r--src/buildstream/plugins/elements/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/plugins/elements/script.py b/src/buildstream/plugins/elements/script.py
index c63d0a04e..f3f0a2f7a 100644
--- a/src/buildstream/plugins/elements/script.py
+++ b/src/buildstream/plugins/elements/script.py
@@ -55,7 +55,7 @@ class ScriptElement(buildstream.ScriptElement):
'commands', 'root-read-only', 'layout'
])
- cmds = self.node_subst_list(node, "commands")
+ cmds = self.node_subst_sequence_vars(node.get_sequence("commands"))
self.add_commands("commands", cmds)
self.set_work_dir()