diff options
author | Josh Smith <joshsmith@codethink.co.uk> | 2018-08-07 16:44:14 +0100 |
---|---|---|
committer | Josh Smith <joshsmith@codethink.co.uk> | 2018-08-07 16:44:14 +0100 |
commit | 9e6838882cecfe8a3e5247a4905018e76db9fa44 (patch) | |
tree | 206f45a478b20687449793ba82bf592212e4dca9 | |
parent | 2ceb5dec5848354ecec88cdae915a3231387c086 (diff) | |
download | buildstream-Qinusty/470-bst-track-yaml-indent.tar.gz |
Fixes #470: tracking modifies elementsQinusty/470-bst-track-yaml-indent
This fixes the issue by preventing the nodes being sorted within the
toplevel node prior to being dumped to file.
HOWEVER: This breaks the interaction with include functionality and storing
refs inline.
-rw-r--r-- | buildstream/source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index d58bfe2a3..24acb686b 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -752,7 +752,7 @@ class Source(Plugin): # Save the ref in the originating file # try: - _yaml.dump(_yaml.node_sanitize(provenance.toplevel), provenance.filename.name) + _yaml.dump(provenance.toplevel, provenance.filename.name) except OSError as e: raise SourceError("{}: Error saving source reference to '{}': {}" .format(self, provenance.filename.name, e), |