diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-11-08 18:26:01 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-11-11 16:09:29 +0000 |
commit | e6c0686d333a168c7809729a4950149c950245c7 (patch) | |
tree | 4297ec3528091488a087d78b6496781954420778 | |
parent | 054375f31bdb183fc7a7100c0e90a8b48348c260 (diff) | |
download | buildstream-e6c0686d333a168c7809729a4950149c950245c7.tar.gz |
Indicate that compose & stack plugins do not run commands
Both compose and stack elements do not run commands in the build
sandbox. Indicate so by setting the `BST_RUN_COMMANDS` attribute
accordingly.
-rw-r--r-- | src/buildstream/plugins/elements/compose.py | 3 | ||||
-rw-r--r-- | src/buildstream/plugins/elements/stack.py | 3 |
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 |