summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <bschubert15@bloomberg.net>2019-12-13 11:28:16 +0000
committerBenjamin Schubert <bschubert15@bloomberg.net>2020-01-15 14:00:03 +0000
commite2f11fc47407a716a9a54674c6f347369927664d (patch)
tree73ff4230aa939d5ee5abf73d13ef4abc73fb44b7
parent3a5f358ad009a3e692ad5c089732d0257c4d8ce2 (diff)
downloadbuildstream-e2f11fc47407a716a9a54674c6f347369927664d.tar.gz
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.
-rw-r--r--src/buildstream/element.py4
1 files changed, 4 insertions, 0 deletions
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)