diff options
author | Josh Smith <qinusty@gmail.com> | 2018-09-12 10:23:51 +0100 |
---|---|---|
committer | Josh Smith <qinusty@gmail.com> | 2018-09-19 13:26:24 +0100 |
commit | 9c3b46c8138628219f4ec0feff07b0bbb06f3d11 (patch) | |
tree | b573828ea225354b9795807bef630ec962312218 | |
parent | b113fe76bdae69e6508a3856d646b43707450f38 (diff) | |
download | buildstream-Qinusty/skipped-rework-backport-1.2.tar.gz |
cascache.py: Modify messaging API callsQinusty/skipped-rework-backport-1.2
Both pulling and pushing INFO messages are now status messages.
Calls to the messaging API through `self.context.message()` have now
been switched to `element.info`.
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index 5eb88f62f..d0761e6f4 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -249,11 +249,8 @@ class CASCache(ArtifactCache): raise ArtifactError("Failed to pull artifact {}: {}".format( element._get_brief_display_key(), e)) from e else: - self.context.message(Message( - None, - MessageType.INFO, - "Remote ({}) does not have {} cached".format( - remote.spec.url, element._get_brief_display_key()) + element.info("Remote ({}) does not have {} cached".format( + remote.spec.url, element._get_brief_display_key() )) return False |