diff options
author | Jürg Billeter <j@bitron.ch> | 2017-08-10 16:50:45 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2017-08-10 16:56:32 +0200 |
commit | 084b50420c27c28291ea110466bf0de8b18073f7 (patch) | |
tree | 16511a323fc29d4c17270a6492bb0c4485696dd3 | |
parent | ba71e3b96ea62124bfe248aabeb9c4922f0a4e3a (diff) | |
download | buildstream-084b50420c27c28291ea110466bf0de8b18073f7.tar.gz |
main.py: Include all dependencies in source bundle
To build all elements, the source bundle has to include the sources and
scripts for all elements, not just build dependencies and their runtime
dependencies.
This removes the --deps option as it doesn't make sense in this context.
-rw-r--r-- | buildstream/_frontend/main.py | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py index 7dc3b34bf..679338137 100644 --- a/buildstream/_frontend/main.py +++ b/buildstream/_frontend/main.py @@ -446,9 +446,6 @@ def checkout(app, target, variant, directory, force): @click.option('--compression', default='gz', type=click.Choice(['none', 'gz', 'bz2', 'xz']), help="Compress the tar file using the given algorithm.") -@click.option('--deps', '-d', default='build', - type=click.Choice(['none', 'run', 'build']), - help='The elements to bundle (default: build)') @click.option('--track', default=False, is_flag=True, help="Track new source references before building") @click.option('--variant', @@ -460,19 +457,11 @@ def checkout(app, target, variant, directory, force): @click.argument('target') @click.pass_obj def source_bundle(app, target, variant, force, directory, - track, deps, compression, except_): - """Produce a build bundle to be manually executed - - Specify `--deps` to control which elements to show: - - \b - none: No dependencies, just the element itself - run: Runtime dependencies, including the element itself - build: Build time dependencies, excluding the element itself - """ + track, compression, except_): + """Produce a source bundle to be manually executed""" app.initialize(target, variant, rewritable=track, inconsistent=track) try: - dependencies = app.pipeline.deps_elements(deps, except_) + dependencies = app.pipeline.deps_elements('all', except_) app.print_heading(dependencies) app.pipeline.source_bundle(app.scheduler, dependencies, force, track, compression, except_, directory) |