diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-08-29 13:15:16 +0200 |
---|---|---|
committer | Valentin David <valentin.david@codethink.co.uk> | 2018-08-29 13:16:26 +0200 |
commit | c108ed1ff05d1c4fead5535b0c9e15fc4aea7b1b (patch) | |
tree | 935dd0385174d1bd84afbc72885f7f45955c9878 | |
parent | 7535fda8b3207a6020be3e7aee3337cda7dc6d56 (diff) | |
download | buildstream-valentindavid/roundtripping_only_when_modified.tar.gz |
Disable round-tripping when element is not modifiedvalentindavid/roundtripping_only_when_modified
-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 6d5640532..f86c42d81 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -774,7 +774,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: @@ -811,7 +812,7 @@ class Source(Plugin): .format(provenance.filename.shortname), reason="tracking-junction-fragment") - return changed + return True # Wrapper for track() # |