summaryrefslogtreecommitdiff
path: root/buildstream/source.py
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-08-08 16:49:19 +0200
committerQinusty <jrsmith9822@gmail.com>2018-08-21 08:44:34 +0000
commit18acd3ea4594e34b681f08db82e95b1078fb5d00 (patch)
treed172ce7ad8c7c08bf2165c08001fac9687b6b783 /buildstream/source.py
parentba74a128d5bd7f18574d0f61039a55f1f63d28b7 (diff)
downloadbuildstream-18acd3ea4594e34b681f08db82e95b1078fb5d00.tar.gz
Fix broken indentation after tracking.
Issue was introduced by 171e803f (include directive) and the fix was found courtesy of @Qinusty. This fixes also the include feature. Because elements are to be serialized, the included fragments need to use copy_tree when loaded. Related to #470.
Diffstat (limited to 'buildstream/source.py')
-rw-r--r--buildstream/source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index 9822beeec..6d5640532 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -794,7 +794,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),