diff options
author | Jürg Billeter <j@bitron.ch> | 2019-03-25 07:47:16 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-03-25 10:24:41 +0100 |
commit | 80db4aee2d3628557c14b54e104c011a551b1bd5 (patch) | |
tree | b0d267bc58fcaafe60b704717721bc53224f36a6 | |
parent | 0ae9ef747bc4488e46ea129bff6d779d68de5655 (diff) | |
download | buildstream-80db4aee2d3628557c14b54e104c011a551b1bd5.tar.gz |
element.py: Add _cached_logs() method
-rw-r--r-- | buildstream/element.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 33d996f80..cb04a9c15 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -2091,6 +2091,17 @@ class Element(Plugin): def _buildtree_exists(self): return self.__artifact.buildtree_exists() + # _cached_logs() + # + # Check if the artifact is cached with log files. + # + # Returns: + # (bool): True if artifact is cached with logs, False if + # element not cached or missing logs. + # + def _cached_logs(self): + return self.__artifact.cached_logs() + # _fetch() # # Fetch the element's sources. |