diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-08-29 13:15:16 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-29 14:11:48 +0000 |
commit | 2a2a79ded94eed473f6631531d4999b04f830356 (patch) | |
tree | 44c1a6a1bca250c55b4f0ff793d8aef7c121a9ac /buildstream/source.py | |
parent | aa3a33b3baf6f0151a35ddd42ae899bd251cd660 (diff) | |
download | buildstream-2a2a79ded94eed473f6631531d4999b04f830356.tar.gz |
Disable round-tripping when element is not modified
Diffstat (limited to 'buildstream/source.py')
-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 74ca9da79..a9ae090a5 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -769,7 +769,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: @@ -806,7 +807,7 @@ class Source(Plugin): .format(provenance.filename.shortname), reason="tracking-junction-fragment") - return changed + return True # Wrapper for track() # |