From ccdf7284e567eff9fac1c18dd19decec43f39538 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 25 Jan 2017 17:47:13 +0900 Subject: _pipeline.py: Bump source consistency level *after* setting a new ref. --- buildstream/_pipeline.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'buildstream/_pipeline.py') 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) -- cgit v1.2.1