summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2019-11-11 17:56:00 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-11-11 17:56:00 +0000
commit4001b46e1e198b7c84bd52448eff2a59a7cf94cd (patch)
tree4297ec3528091488a087d78b6496781954420778
parent054375f31bdb183fc7a7100c0e90a8b48348c260 (diff)
parente6c0686d333a168c7809729a4950149c950245c7 (diff)
downloadbuildstream-4001b46e1e198b7c84bd52448eff2a59a7cf94cd.tar.gz
Merge branch 'chandan/no-command-general-elements' into 'master'
Indicate that compose & stack plugins do not run commands See merge request BuildStream/buildstream!1697
-rw-r--r--src/buildstream/plugins/elements/compose.py3
-rw-r--r--src/buildstream/plugins/elements/stack.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/plugins/elements/compose.py b/src/buildstream/plugins/elements/compose.py
index 1c523eeb2..511925731 100644
--- a/src/buildstream/plugins/elements/compose.py
+++ b/src/buildstream/plugins/elements/compose.py
@@ -58,6 +58,9 @@ class ComposeElement(Element):
# This plugin has been modified to avoid the use of Sandbox.get_directory
BST_VIRTUAL_DIRECTORY = True
+ # Compose elements do not run any commands
+ BST_RUN_COMMANDS = False
+
def configure(self, node):
node.validate_keys([
'integrate', 'include', 'exclude', 'include-orphans'
diff --git a/src/buildstream/plugins/elements/stack.py b/src/buildstream/plugins/elements/stack.py
index 267ac02ce..ae15af63a 100644
--- a/src/buildstream/plugins/elements/stack.py
+++ b/src/buildstream/plugins/elements/stack.py
@@ -39,6 +39,9 @@ class StackElement(Element):
# This element does not allow sources
BST_FORBID_SOURCES = True
+ # Stack elements do not run any commands
+ BST_RUN_COMMANDS = False
+
def configure(self, node):
pass