summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.com>2017-07-14 15:26:23 +0100
committerTristan Maat <tristan.maat@codethink.com>2017-07-14 15:32:25 +0100
commit293bf7fd639815c2660cfa6d1fa9d7844fb5ac73 (patch)
tree1df8ea222cb153eadb633fc9f5cb4d23555defa0
parent781fc131baae942cc8e17676297cb679f7d5320b (diff)
downloadbuildstream-293bf7fd639815c2660cfa6d1fa9d7844fb5ac73.tar.gz
_yaml.py: Prevent the PROVENANCE_KEY from being sorted
-rw-r--r--buildstream/_yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 06a806075..f9d49343d 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -563,7 +563,7 @@ def node_sanitize(node):
result = SanitizedDict()
- for key in sorted(node):
+ for key in sorted(node, key=lambda s: (s == PROVENANCE_KEY, s)):
if key == PROVENANCE_KEY:
continue
result[key] = node_sanitize(node[key])