summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim@mode7.co.uk>2018-05-27 16:11:39 +0100
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-07-24 13:17:50 +0100
commita19a00abc78715c6cf0e7de91c30613acae069ed (patch)
treed069b3a26683bb8cbed83a96d33337dfbacafca9
parent7f99207a95cd29b7c88dc6914a2a001065d796fb (diff)
downloadbuildstream-a19a00abc78715c6cf0e7de91c30613acae069ed.tar.gz
Make Import a BST_VIRTUAL_DIRECTORY class
-rw-r--r--buildstream/plugins/elements/import.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/import.py b/buildstream/plugins/elements/import.py
index 11c3f9a6a..eb4268dba 100644
--- a/buildstream/plugins/elements/import.py
+++ b/buildstream/plugins/elements/import.py
@@ -36,6 +36,10 @@ from buildstream import Element, BuildElement, ElementError
# Element implementation for the 'import' kind.
class ImportElement(BuildElement):
+
+ # This plugin has been modified to avoid the use of Sandbox.get_directory
+ BST_VIRTUAL_DIRECTORY = True
+
# pylint: disable=attribute-defined-outside-init
def configure(self, node):