diff options
author | Tristan Maat <tristan.maat@codethink.com> | 2017-07-14 15:26:23 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-07-17 22:57:36 +0900 |
commit | 44862d5c1c4db79b71e942f4595de66c31705753 (patch) | |
tree | b0b12566768f868c4e20a0f88c6a590a055747f1 /buildstream/_yaml.py | |
parent | c3181f4b443b618c38d24faefa48a84d4c10253a (diff) | |
download | buildstream-44862d5c1c4db79b71e942f4595de66c31705753.tar.gz |
_yaml.py: Prevent the PROVENANCE_KEY from being sorted
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r-- | buildstream/_yaml.py | 2 |
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]) |