summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_frontend/cli.py2
-rw-r--r--buildstream/element.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index b845d00eb..59c917323 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -640,7 +640,7 @@ def shell(app, element, sysroot, mount, isolate, build_, command):
@click.option('--force', '-f', default=False, is_flag=True,
help="Allow files to be overwritten")
@click.option('--deps', '-d', default='run',
- type=click.Choice(['run', 'none']),
+ type=click.Choice(['run', 'build', 'none']),
help='The dependencies to checkout (default: run)')
@click.option('--integrate/--no-integrate', default=True, is_flag=True,
help="Whether to run integration commands")
diff --git a/buildstream/element.py b/buildstream/element.py
index d94f2e8ad..2caac8d3c 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1353,7 +1353,10 @@ class Element(Plugin):
if scope == Scope.BUILD:
self.stage(sandbox)
elif scope == Scope.RUN:
- if deps == 'run':
+
+ if deps == 'build':
+ dependency_scope = Scope.BUILD
+ elif deps == 'run':
dependency_scope = Scope.RUN
else:
dependency_scope = Scope.NONE