summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-28 09:15:19 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-08-28 09:15:19 +0100
commit132396fd065c3b401fe26b23b20aa998b53cc6be (patch)
tree302edde97de04c8e9db966e6dc447f9570d64487
parent84fc72e064c2eebf6e0e2179cb482ceecac6ea9b (diff)
downloadbuildstream-132396fd065c3b401fe26b23b20aa998b53cc6be.tar.gz
_stream.py: Avoid the risk of checking out a failed artifact
-rw-r--r--src/buildstream/_stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 58d4a0ebd..0567b3ceb 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -549,7 +549,7 @@ class Stream():
self._check_location_writable(location, force=force, tar=tar)
- uncached_elts = [elt for elt in elements if not elt._cached()]
+ uncached_elts = [elt for elt in elements if not elt._cached_success()]
if uncached_elts and pull:
self._message(MessageType.INFO, "Attempting to fetch missing or incomplete artifact")
self._scheduler.clear_queues()