summaryrefslogtreecommitdiff
path: root/buildstream/_scheduler/fetchqueue.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_scheduler/fetchqueue.py')
-rw-r--r--buildstream/_scheduler/fetchqueue.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_scheduler/fetchqueue.py b/buildstream/_scheduler/fetchqueue.py
index 8fc19d283..b284d5b35 100644
--- a/buildstream/_scheduler/fetchqueue.py
+++ b/buildstream/_scheduler/fetchqueue.py
@@ -57,9 +57,9 @@ class FetchQueue(Queue):
if returncode != 0:
return False
- for source in element.sources():
+ element._update_state()
- # Successful fetch, we must be CACHED now
- source._bump_consistency(Consistency.CACHED)
+ # Successful fetch, we must be CACHED now
+ assert(element._consistency() == Consistency.CACHED)
return True