summaryrefslogtreecommitdiff
path: root/buildstream/_frontend
diff options
context:
space:
mode:
authorPhillip Smyth <phillipsmyth@Nexus-x240.dyn.ducie.codethink.co.uk>2018-07-16 07:27:15 +0100
committerPhillip Smyth <phillip.smyth@codethink.co.uk>2018-07-17 12:53:55 +0000
commit7e9282c97a7f940b9882154ccc6164a7f2268da8 (patch)
treef8c53e9677165f6b3c6424f52028714ac78d5f7c /buildstream/_frontend
parentf770ab1c789aa6c4ff88ee2045a3a9207ed1f27f (diff)
downloadbuildstream-7e9282c97a7f940b9882154ccc6164a7f2268da8.tar.gz
buildstream/_frontend/cli.py: Added a `--deps` flag to `bst checkout`
buildstream/_stream.py: Added deps param to _prepare_sandbox function call buildstream/element.py: Added deps param and logic to _prepare_sandbox function
Diffstat (limited to 'buildstream/_frontend')
-rw-r--r--buildstream/_frontend/cli.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index c75e7ac6a..1221bb7dd 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -627,6 +627,9 @@ def shell(app, element, sysroot, mount, isolate, build_, command):
@cli.command(short_help="Checkout a built artifact")
@click.option('--force', '-f', default=False, is_flag=True,
help="Overwrite files existing in checkout directory")
+@click.option('--deps', '-d', default='run',
+ type=click.Choice(['run', 'none']),
+ help='The dependencies to checkout (default: all')
@click.option('--integrate/--no-integrate', default=True, is_flag=True,
help="Whether to run integration commands")
@click.option('--hardlinks', default=False, is_flag=True,
@@ -635,12 +638,13 @@ def shell(app, element, sysroot, mount, isolate, build_, command):
type=click.Path(readable=False))
@click.argument('directory', type=click.Path(file_okay=False))
@click.pass_obj
-def checkout(app, element, directory, force, integrate, hardlinks):
+def checkout(app, element, directory, force, deps, integrate, hardlinks):
"""Checkout a built artifact to the specified directory
"""
with app.initialized():
app.stream.checkout(element,
directory=directory,
+ deps=deps,
force=force,
integrate=integrate,
hardlinks=hardlinks)