diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-20 14:23:18 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:34 +0100 |
commit | d217bedd3224c4896248cb06cbbc40ffc9398cfe (patch) | |
tree | fd93c7747f9c1cfc869318306bba9bcce84090a0 | |
parent | d00b54b948ecc9a23e39a10a15d9b8c1e564240f (diff) | |
download | poky-d217bedd3224c4896248cb06cbbc40ffc9398cfe.tar.gz |
Don't emit vars starting with __, as those are internal
(Bitbake rev: 211f44ce0e15c7c419606e9ef3568d9cea6775b7)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-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 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): | |||
223 | """Emits all items in the data store in a format such that it can be sourced by a shell.""" | 223 | """Emits all items in the data store in a format such that it can be sourced by a shell.""" |
224 | 224 | ||
225 | isfunc = lambda key: bool(d.getVarFlag(key, "func")) | 225 | isfunc = lambda key: bool(d.getVarFlag(key, "func")) |
226 | keys = sorted(d.keys(), key=isfunc) | 226 | keys = sorted((key for key in d.keys() if not key.startswith("__")), key=isfunc) |
227 | grouped = groupby(keys, isfunc) | 227 | grouped = groupby(keys, isfunc) |
228 | for isfunc, keys in grouped: | 228 | for isfunc, keys in grouped: |
229 | for key in keys: | 229 | for key in keys: |