diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-01-25 17:47:13 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-01-25 17:47:13 +0900 |
commit | ccdf7284e567eff9fac1c18dd19decec43f39538 (patch) | |
tree | 9f29be31d02f08332d34522025f9eb375cc3e64b /buildstream/_pipeline.py | |
parent | 09f39f153ef60958b069e63ea15a059af8248003 (diff) | |
download | buildstream-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.py | 7 |
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) |