summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2019-01-09 14:56:58 +0100
committerValentin David <valentin.david@codethink.co.uk>2019-01-09 14:56:58 +0100
commiteb0dbcfcaa4ba516f89844802af5637ed37172e4 (patch)
tree357ba4ddd7186df597fd21fbc582362e7310882e
parentba05c4fa6ce46210088f60d360765fc14f5971d9 (diff)
downloadbuildstream-valentindavid/script_virtual_directory.tar.gz
buildstream/plugins/elements/script.py: Mark script as BST_VIRTUAL_DIRECTORYvalentindavid/script_virtual_directory
ScriptElement does not use Sandbox.get_directory. It works using it with remote execution. Fixes #850
-rw-r--r--buildstream/plugins/elements/script.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/script.py b/buildstream/plugins/elements/script.py
index 4e422c5db..6c33ecf95 100644
--- a/buildstream/plugins/elements/script.py
+++ b/buildstream/plugins/elements/script.py
@@ -42,6 +42,9 @@ import buildstream
class ScriptElement(buildstream.ScriptElement):
# pylint: disable=attribute-defined-outside-init
+ # This plugin has been modified to avoid the use of Sandbox.get_directory
+ BST_VIRTUAL_DIRECTORY = True
+
def configure(self, node):
for n in self.node_get_member(node, list, 'layout', []):
dst = self.node_subst_member(n, 'destination')