diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-30 11:03:17 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-30 11:03:17 +0000 |
commit | 017821c7f9a5b8085ef7441057589a3877728e9e (patch) | |
tree | a26486cf66c057d26473822a616fd0c48515bb7d | |
parent | 3086eda561f7a17ebc9aad1fb70fe0c0fd83d8f0 (diff) | |
parent | 57c5f8373cd194e3cd8fe88929c206e1c864de79 (diff) | |
download | buildstream-017821c7f9a5b8085ef7441057589a3877728e9e.tar.gz |
Merge branch 'valentindavid/roundtripping_only_when_modified-1.2' into 'bst-1.2'
Disable round-tripping when element is not modified
See merge request BuildStream/buildstream!760
-rw-r--r-- | buildstream/source.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index 8caca4a91..9f8f4ffdb 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -739,7 +739,8 @@ class Source(Plugin): # # Step 2 - Set the ref in memory, and determine changed state # - changed = self._set_ref(new_ref, node) + if not self._set_ref(new_ref, node): + return False def do_save_refs(refs): try: @@ -776,7 +777,7 @@ class Source(Plugin): .format(provenance.filename.shortname), reason="tracking-junction-fragment") - return changed + return True # Wrapper for track() # |