summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2019-03-27 17:01:28 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2019-03-28 14:14:22 +0000
commit0f67660712546d5ace11600a6f211b2f7014e002 (patch)
tree22eb7dd5f5c7efd4db55af8a48392fc7a4c499d6
parenta2cd04d0d0db76963c0c4651b0088c51a41994f7 (diff)
downloadbuildstream-jonathan/skip_schedule_attempt.tar.gz
element.py: Only update the source state after fetchingjonathan/skip_schedule_attempt
-rw-r--r--buildstream/element.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index d9dddd2d5..d72ff6153 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1791,9 +1791,9 @@ class Element(Plugin):
# Indicates that fetching the sources for this element has been done.
#
def _fetch_done(self):
- # We are not updating the state recursively here since fetching can
- # never end up in updating them.
- self._update_state()
+ # After a fetch, the only change is that a source goes from RESOLVED
+ # to CACHED, which does not affect the element's cache key.
+ self.__update_source_state()
# _pull_pending()
#