summaryrefslogtreecommitdiffstats
path: root/lib/bb/data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-20 14:23:18 -0700
committerChris Larson <chris_larson@mentor.com>2010-05-21 13:21:24 -0700
commit211f44ce0e15c7c419606e9ef3568d9cea6775b7 (patch)
treeaaeaba591b9737d44dfd3f7d6e436f7c76468612 /lib/bb/data.py
parent05462fa7908fc22988b3dc9d376798d0a46ccb5a (diff)
downloadbitbake-211f44ce0e15c7c419606e9ef3568d9cea6775b7.tar.gz
Don't emit vars starting with __, as those are internal
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r--lib/bb/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index 96ed6e1e4..636983edc 100644
--- a/lib/bb/data.py
+++ b/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: