summaryrefslogtreecommitdiff
path: root/buildstream/_stream.py
diff options
context:
space:
mode:
authorWilliam Salmon <will.salmon@codethink.co.uk>2018-12-04 16:42:58 +0000
committerWilliam Salmon <will.salmon@codethink.co.uk>2018-12-18 15:56:58 +0000
commitf2a2c84b310ce6c7991be908b5770c7a7a03eac6 (patch)
tree3aa96cdfa38b31560f77253fa5a57e926cb682e7 /buildstream/_stream.py
parent644d8b28505842eb713bf402b455f751b15b6022 (diff)
downloadbuildstream-f2a2c84b310ce6c7991be908b5770c7a7a03eac6.tar.gz
Basic options for shell --build to use buildtreeswillsalmon/shellBuildTrees
Fixes issue #740
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r--buildstream/_stream.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index 04eb409a5..85ead3330 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -124,6 +124,7 @@ class Stream():
# mounts (list of HostMount): Additional directories to mount into the sandbox
# isolate (bool): Whether to isolate the environment like we do in builds
# command (list): An argv to launch in the sandbox, or None
+ # usebuildtree (bool): Wheather to use a buildtree as the source.
#
# Returns:
# (int): The exit code of the launched shell
@@ -132,7 +133,8 @@ class Stream():
directory=None,
mounts=None,
isolate=False,
- command=None):
+ command=None,
+ usebuildtree=False):
# Assert we have everything we need built, unless the directory is specified
# in which case we just blindly trust the directory, using the element
@@ -147,7 +149,8 @@ class Stream():
raise StreamError("Elements need to be built or downloaded before staging a shell environment",
detail="\n".join(missing_deps))
- return element._shell(scope, directory, mounts=mounts, isolate=isolate, prompt=prompt, command=command)
+ return element._shell(scope, directory, mounts=mounts, isolate=isolate, prompt=prompt, command=command,
+ usebuildtree=usebuildtree)
# build()
#