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:53:00 UTC
[buildstream] 03/13: cli: Make artifact log guess a default element
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch richardmaw/artifact-subcommands
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit fe015b38f08ce582e2a38705b2536d0873574ee6
Author: Richard Maw <ri...@codethink.co.uk>
AuthorDate: Wed Dec 12 18:20:31 2018 +0000
cli: Make artifact log guess a default element
---
buildstream/_frontend/cli.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index 222be1c..49da15c 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -1018,6 +1018,11 @@ def artifact_log(app, artifacts):
elements, artifacts = _classify_artifacts(artifacts, cache.cas,
app.project.directory)
+ if not elements and not artifacts:
+ element = app.context.guess_element()
+ if element is not None:
+ elements = [element]
+
vdirs = []
extractdirs = []
if artifacts: