From 713767363d2e5fd25404e86cb3a5f8e033676c97 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Fri, 8 Nov 2019 18:26:01 +0000 Subject: 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. --- src/buildstream/plugins/elements/compose.py | 3 +++ src/buildstream/plugins/elements/stack.py | 3 +++ 2 files changed, 6 insertions(+) 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 -- cgit v1.2.1