diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-22 15:40:35 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-27 15:21:34 +0100 |
commit | bf6ca6615bb5b69defcc41f33625cbfc2b300f1a (patch) | |
tree | ae2d990b5f60997b494a5b18ff3fa82081d2be65 /src/buildstream/_frontend/widget.py | |
parent | 6c7a2eeec7b648870ffb8384a794208b05661c9a (diff) | |
download | buildstream-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.py | 2 |
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') |