diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2017-03-17 12:44:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:23 +0000 |
commit | 9a6f6366799ac53168f3398cb5c8d33f0da4f870 (patch) | |
tree | c50cf19276b9f16c18ebd0c52a2ebb58b00464bb /bitbake/lib/bb/data.py | |
parent | ad1d65ca32236dd575b11bddd36e3c891f8c5a76 (diff) | |
download | poky-9a6f6366799ac53168f3398cb5c8d33f0da4f870.tar.gz |
bitbake: data.py: sort exported variables
Various run.do_xxx files export dozens of variables.
Presently they are in random order. Among other things,
this makes it difficult to compare two files for relevant changes.
This patch ensures they are enumerated/printed in a sorted
(alphabetical) order.
(Bitbake rev: 27b501d1400d1942b5ba9f35218ca7aacd9bfefe)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r-- | bitbake/lib/bb/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 0f05b609e0..d145f1b0ab 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -220,7 +220,7 @@ def emit_func(func, o=sys.__stdout__, d = init()): | |||
220 | """Emits all items in the data store in a format such that it can be sourced by a shell.""" | 220 | """Emits all items in the data store in a format such that it can be sourced by a shell.""" |
221 | 221 | ||
222 | keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func", False)) | 222 | keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func", False)) |
223 | for key in keys: | 223 | for key in sorted(keys): |
224 | emit_var(key, o, d, False) | 224 | emit_var(key, o, d, False) |
225 | 225 | ||
226 | o.write('\n') | 226 | o.write('\n') |