You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:30:33 UTC

[buildstream] 01/06: main.py: Fix app initialization

This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a commit to branch except_intersections
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit bb99f2110fbf6a9788c7e4517ca2c7e2ad9fcbd4
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Tue Nov 7 18:02:07 2017 +0000

    main.py: Fix app initialization
---
 buildstream/_frontend/main.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 4e00a2b..3189e10 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')