element.py: Only update the source state after fetching
diff --git a/buildstream/element.py b/buildstream/element.py
index d9dddd2..d72ff61 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1791,9 +1791,9 @@
# 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()
#