summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-04-30 23:54:01 +0100
committerChandan Singh <chandan@chandansingh.net>2019-07-16 01:18:04 +0100
commit0be5d952c468841201111fc6e4ec7337eeea4efa (patch)
treeff77123877b3ea4fcfeb32a0283c3e3f1796a602
parentd84d9892a9d2f6b42e79d058e2e71fa8dc6cd005 (diff)
downloadbuildstream-chandan/stack-disallow-source.tar.gz
elements/stack.py: Disallow sourceschandan/stack-disallow-source
Stack elements merely represent a logical group of elements. For this reason, sources do not make sense.
-rw-r--r--src/buildstream/plugins/elements/stack.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/plugins/elements/stack.py b/src/buildstream/plugins/elements/stack.py
index 97517ca48..65823387b 100644
--- a/src/buildstream/plugins/elements/stack.py
+++ b/src/buildstream/plugins/elements/stack.py
@@ -33,6 +33,10 @@ class StackElement(Element):
# This plugin has been modified to avoid the use of Sandbox.get_directory
BST_VIRTUAL_DIRECTORY = True
+ # Stack elements merely represent a logical group of elements. For this
+ # reason, sources do not make sense.
+ BST_FORBID_SOURCES = True
+
def configure(self, node):
pass