summaryrefslogtreecommitdiff
path: root/buildstream/_scheduler/trackqueue.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-01-15 08:52:27 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-01-16 12:58:39 +0000
commit03412a9e8a13e6c5f50dec95e067c2ae6900d08f (patch)
tree2dc7091abd056c761e39c8dc20a294af177c4505 /buildstream/_scheduler/trackqueue.py
parentd6ebd6cea97e76e79c2437d4ae93944a983e5727 (diff)
downloadbuildstream-juerg/source-state.tar.gz
Use explicit source state updatesjuerg/source-state
This adds the _update_state() method to the Source class, similar to the corresponding method in the Element class.
Diffstat (limited to 'buildstream/_scheduler/trackqueue.py')
-rw-r--r--buildstream/_scheduler/trackqueue.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/buildstream/_scheduler/trackqueue.py b/buildstream/_scheduler/trackqueue.py
index 3c1521f7b..3f35aff47 100644
--- a/buildstream/_scheduler/trackqueue.py
+++ b/buildstream/_scheduler/trackqueue.py
@@ -83,13 +83,8 @@ class TrackQueue(Queue):
"tracked source to file {}: {}"
.format(source, fullname, e))
- # Forcefully recalculate the element's consistency state after successfully
- # tracking, this is avoid a following fetch queue operating on the sources
- # if the tracked ref is cached as a result.
- #
context = element._get_context()
context._push_message_depth(True)
- element._consistency(recalculate=True)
element._update_state()
context._pop_message_depth()