summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-01-22 06:56:28 +0100
committerJürg Billeter <j@bitron.ch>2019-01-22 06:58:24 +0100
commit04106585c1f460d879f519f64b59ca105f8d34d1 (patch)
tree71c9ce04b1f4caf4db0c582a7ef22aac04548df3
parent638ceb8a081b76ab072f10ad876e528d95b95e42 (diff)
downloadbuildstream-04106585c1f460d879f519f64b59ca105f8d34d1.tar.gz
_frontend/cli.py: Guess element also for bst build --all
There is no reason to disallow guess_element() for bst build --all.
-rw-r--r--buildstream/_frontend/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index a0a01364d..5e8aee51b 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -353,7 +353,7 @@ def build(app, elements, all_, track_, track_save, track_all, track_except, trac
click.echo("WARNING: --track-save is deprecated, saving is now unconditional", err=True)
with app.initialized(session_name="Build"):
- if not all_ and not elements:
+ if not elements:
guessed_target = app.context.guess_element()
if guessed_target:
elements = (guessed_target,)