From e2f11fc47407a716a9a54674c6f347369927664d Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Fri, 13 Dec 2019 11:28:16 +0000 Subject: element.py: Stop asserting we are cached after fetch and mark us as such This assert would only be run in development mode and would actually not mark the source as downloaded. Therefore forcefully mark them as fetched and remove the assert. Our test suite will catch if there is a problem. --- src/buildstream/element.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 9769ebf6c..061b0b213 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -1749,6 +1749,10 @@ class Element(Plugin): # fetched_original (bool): Whether the original sources had been asked (and fetched) or not # def _fetch_done(self, fetched_original): + self.__has_all_sources_in_source_cache = True + if fetched_original: + self.__has_all_sources_cached = True + for source in self.__sources: source._fetch_done(fetched_original) -- cgit v1.2.1