diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-11-07 18:02:07 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-18 17:30:13 +0900 |
commit | 4c73b85dbf6e84c710dc55bc756b02c7952ba764 (patch) | |
tree | 926a23280dd9365ae11a59c7114cc58d88d04126 /buildstream/_frontend | |
parent | 87228f6941cafb6a3f4f5704b6272d2916795ea5 (diff) | |
download | buildstream-4c73b85dbf6e84c710dc55bc756b02c7952ba764.tar.gz |
main.py: Fix app initialization
Diffstat (limited to 'buildstream/_frontend')
-rw-r--r-- | buildstream/_frontend/main.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py index 46cc7a9ca..3fc1e8195 100644 --- a/buildstream/_frontend/main.py +++ b/buildstream/_frontend/main.py @@ -474,7 +474,7 @@ def shell(app, element, sysroot, build, command): else: scope = Scope.RUN - app.initialize([element]) + app.initialize((element,)) # Assert we have everything we need built. missing_deps = [] @@ -516,7 +516,7 @@ def shell(app, element, sysroot, build, command): def checkout(app, element, directory, force, integrate): """Checkout a built artifact to the specified directory """ - app.initialize([element]) + app.initialize((element,)) try: app.pipeline.checkout(directory, force, integrate) click.echo("") @@ -548,7 +548,7 @@ def checkout(app, element, directory, force, integrate): def source_bundle(app, target, force, directory, track, compression, except_): """Produce a source bundle to be manually executed""" - app.initialize([target], rewritable=track, inconsistent=track) + app.initialize((target,), rewritable=track, inconsistent=track) try: dependencies = app.pipeline.deps_elements('all', except_) app.print_heading(dependencies) @@ -589,7 +589,7 @@ def workspace(): def workspace_open(app, no_checkout, force, source, track, element, directory): """Open a workspace for manual source modification""" - app.initialize([element], rewritable=track, inconsistent=track) + app.initialize((element,), rewritable=track, inconsistent=track) try: app.pipeline.open_workspace(app.scheduler, directory, source, no_checkout, track, force) click.echo("") @@ -613,7 +613,7 @@ def workspace_open(app, no_checkout, force, source, track, element, directory): def workspace_close(app, source, remove_dir, element): """Close a workspace""" - app.initialize([element]) + app.initialize((element,)) if app.interactive and remove_dir: if not click.confirm('This will remove all your changes, are you sure?'): click.echo('Aborting') @@ -643,7 +643,7 @@ def workspace_close(app, source, remove_dir, element): @click.pass_obj def workspace_reset(app, source, track, no_checkout, element): """Reset a workspace to its original state""" - app.initialize([element]) + app.initialize((element,)) if app.interactive: if not click.confirm('This will remove all your changes, are you sure?'): click.echo('Aborting') |