diff options
author | Jürg Billeter <j@bitron.ch> | 2019-04-17 10:52:13 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-04-17 10:56:43 +0200 |
commit | f78ec0d25e82fb4c7ce839afbacfbfae691293b1 (patch) | |
tree | 0b4c0a37f3beeaced308f7219337497aa6fe019a | |
parent | 8c793949a626433fa8d84469600347ed6ed0731f (diff) | |
download | buildstream-f78ec0d25e82fb4c7ce839afbacfbfae691293b1.tar.gz |
WIP: element.py: Fix error in _cached_buildtree() without artifact
-rw-r--r-- | buildstream/element.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index b01347866..543403353 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -2146,6 +2146,9 @@ class Element(Plugin): # not its contents. # def _cached_buildtree(self): + if not self._cached(): + return False + return self.__artifact.cached_buildtree() # _buildtree_exists() @@ -2157,6 +2160,9 @@ class Element(Plugin): # (bool): True if artifact was created with buildtree # def _buildtree_exists(self): + if not self._cached(): + return False + return self.__artifact.buildtree_exists() # _cached_logs() |