summaryrefslogtreecommitdiff
path: root/buildstream/_pipeline.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-25 17:47:13 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-25 17:47:13 +0900
commitccdf7284e567eff9fac1c18dd19decec43f39538 (patch)
tree9f29be31d02f08332d34522025f9eb375cc3e64b /buildstream/_pipeline.py
parent09f39f153ef60958b069e63ea15a059af8248003 (diff)
downloadbuildstream-ccdf7284e567eff9fac1c18dd19decec43f39538.tar.gz
_pipeline.py: Bump source consistency level *after* setting a new ref.
Diffstat (limited to 'buildstream/_pipeline.py')
-rw-r--r--buildstream/_pipeline.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index a3e148c9f..2fe451919 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -117,11 +117,10 @@ class TrackQueue(Queue):
# Set the new refs in the main process one by one as they complete
for unique_id, new_ref in result:
source = _plugin_lookup(unique_id)
-
- # Successful update of ref, we're at least resolved now
- source._bump_consistency(Consistency.RESOLVED)
-
if source._set_ref(new_ref, source._Source__origin_node):
+
+ # Successful update of ref, we're at least resolved now
+ source._bump_consistency(Consistency.RESOLVED)
self.changed_files[source._Source__origin_filename] = source._Source__origin_toplevel
self.changed_sources.append(source)