summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend/widget.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-22 15:40:35 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-08-27 15:21:34 +0100
commitbf6ca6615bb5b69defcc41f33625cbfc2b300f1a (patch)
treeae2d990b5f60997b494a5b18ff3fa82081d2be65 /src/buildstream/_frontend/widget.py
parent6c7a2eeec7b648870ffb8384a794208b05661c9a (diff)
downloadbuildstream-bf6ca6615bb5b69defcc41f33625cbfc2b300f1a.tar.gz
_artifactcache.py: Add remote support to bst artifact show
If remotes exist, each remote will be checked for the target artifacts. If an artifact is cached remotely, we make a record of this.
Diffstat (limited to 'src/buildstream/_frontend/widget.py')
-rw-r--r--src/buildstream/_frontend/widget.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildstream/_frontend/widget.py b/src/buildstream/_frontend/widget.py
index 85fb00768..e8299868c 100644
--- a/src/buildstream/_frontend/widget.py
+++ b/src/buildstream/_frontend/widget.py
@@ -856,6 +856,8 @@ class LogLine(Widget):
line = p.fmt_subst(line, 'state', "cached", fg='magenta')
elif element._cached():
line = p.fmt_subst(line, 'state', "failed", fg='red')
+ elif element._cached_remotely():
+ line = p.fmt_subst(line, 'state', "available", fg='green')
else:
line = p.fmt_subst(line, 'state', "not cached", fg='bright_red')