diff options
author | Darius Makovsky <traveltissues@protonmail.com> | 2019-10-16 17:15:29 +0100 |
---|---|---|
committer | Darius Makovsky <traveltissues@protonmail.com> | 2019-10-16 17:15:29 +0100 |
commit | a4eecd374e94694582460971cb3020efe5f903d3 (patch) | |
tree | 6c6c1252f4c5087ed5ff7f9ef8b498cb34790b65 | |
parent | 45f0d52e59910302b936c00f1fc91faff0842819 (diff) | |
download | buildstream-a4eecd374e94694582460971cb3020efe5f903d3.tar.gz |
wip
-rw-r--r-- | src/buildstream/element.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index e19b3f17e..fd318e73a 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -1200,12 +1200,8 @@ class Element(Plugin): # (bool): Whether this element is already present in # the artifact cache and the element did not assemble successfully # - def _cached_failure(self): - if not self._cached(): - return False - - success, _, _ = self._get_build_result() - return not success + def _cached_failure(self) -> bool: + return not self._cached_success() # _buildable(): # |