From d217bedd3224c4896248cb06cbbc40ffc9398cfe Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 20 Apr 2010 14:23:18 -0700 Subject: [PATCH] Don't emit vars starting with __, as those are internal (Bitbake rev: 211f44ce0e15c7c419606e9ef3568d9cea6775b7) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 96ed6e1e41..636983edcc 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py @@ -223,7 +223,7 @@ def emit_env(o=sys.__stdout__, d = init(), all=False): """Emits all items in the data store in a format such that it can be sourced by a shell.""" isfunc = lambda key: bool(d.getVarFlag(key, "func")) - keys = sorted(d.keys(), key=isfunc) + 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: