summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-08-29 13:15:16 +0200
committerValentin David <valentin.david@codethink.co.uk>2018-08-30 12:43:24 +0200
commit57c5f8373cd194e3cd8fe88929c206e1c864de79 (patch)
treea26486cf66c057d26473822a616fd0c48515bb7d
parent3086eda561f7a17ebc9aad1fb70fe0c0fd83d8f0 (diff)
downloadbuildstream-57c5f8373cd194e3cd8fe88929c206e1c864de79.tar.gz
Disable round-tripping when element is not modified
-rw-r--r--buildstream/source.py5
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()
#