[oe-commits] [bitbake] 06/11: data.py: sort exported variables

git at git.openembedded.org git at git.openembedded.org
Tue Mar 21 21:11:54 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 27b501d1400d1942b5ba9f35218ca7aacd9bfefe
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Fri Mar 17 12:44:07 2017 -0700

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/data.py b/lib/bb/data.py
index 0f05b60..d145f1b 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')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list