summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-10-06 08:01:42 +0200
committerJürg Billeter <j@bitron.ch>2020-10-27 08:12:46 +0100
commit30db528484f9bb4a3f9b86f9b96f314c737e7dc3 (patch)
tree512e215db8ba7784983b19ab5692fb292511f7d9
parentf034b652074a59991c261192bda35697ba28b5c6 (diff)
downloadbuildstream-30db528484f9bb4a3f9b86f9b96f314c737e7dc3.tar.gz
_frontend/cli.py: Make bst shell --use-buildtree imply --build
-rw-r--r--src/buildstream/_frontend/cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index 9b8150cca..24ac6912e 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -617,6 +617,10 @@ def shell(app, element, mount, isolate, build_, cli_buildtree, pull_, command):
from ..element import _Scope
from .._project import HostMount
+ # Buildtree can only be used with build shells
+ if cli_buildtree != "never":
+ build_ = True
+
scope = _Scope.BUILD if build_ else _Scope.RUN
# We may need to fetch dependency artifacts if we're pulling the artifact