summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-11-07 18:02:07 +0000
committerTristan Maat <tristan.maat@codethink.co.uk>2017-11-17 10:28:19 +0000
commit1909c686f5bba4e6df398d4a7399834f3f6be503 (patch)
tree4f16a8c2b47ed5e690ebbc84e884da26ba2296c6
parent28328cde18b14677030235baecea29e38900f75f (diff)
downloadbuildstream-1909c686f5bba4e6df398d4a7399834f3f6be503.tar.gz
main.py: Fix app initialization
-rw-r--r--buildstream/_frontend/main.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 4e00a2be1..3189e101c 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')