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-21 21:02:51 +0000 |
commit | 27b501d1400d1942b5ba9f35218ca7aacd9bfefe (patch) | |
tree | 6fa019d4527f0d4d74e6ee9948b4574cf2883630 /lib/bb/data.py | |
parent | 71185c19205a77d0511fc00baf95a5433e7106d6 (diff) | |
download | bitbake-27b501d1400d1942b5ba9f35218ca7aacd9bfefe.tar.gz |
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.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r-- | lib/bb/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 0f05b609e..d145f1b0a 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -220,7 +220,7 @@ def emit_func(func, o=sys.__stdout__, d = init()): """Emits all items in the data store in a format such that it can be sourced by a shell.""" keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func", False)) - for key in keys: + for key in sorted(keys): emit_var(key, o, d, False) o.write('\n') |