[oe-commits] [bitbake] 11/11: data/cooker: Sort output data shown by -e
git at git.openembedded.org
git at git.openembedded.org
Tue Mar 21 21:11:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit baa417e44b009149eb1dfb07d5a488740b6e68ef
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Mar 21 20:46:14 2017 +0000
data/cooker: Sort output data shown by -e
Displaying the environment data in a sorted manner makes it easier
to compare data between different setups and means you can know
where to find specific entries.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 2 +-
lib/bb/data.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 662a7ac..e3f5317 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -648,7 +648,7 @@ class BBCooker:
# emit the metadata which isnt valid shell
data.expandKeys(envdata)
- for e in envdata.keys():
+ for e in sorted(envdata.keys()):
if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False):
logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False))
diff --git a/lib/bb/data.py b/lib/bb/data.py
index d145f1b..a85cb3a 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -196,7 +196,7 @@ def emit_env(o=sys.__stdout__, d = init(), all=False):
keys = sorted((key for key in d.keys() if not key.startswith("__")), key=isfunc)
grouped = groupby(keys, isfunc)
for isfunc, keys in grouped:
- for key in keys:
+ for key in sorted(keys):
emit_var(key, o, d, all and not isfunc) and o.write('\n')
def exported_keys(d):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list