]> code.ossystems Code Review - openembedded-core.git/commitdiff
Don't emit vars starting with __, as those are internal
authorChris Larson <chris_larson@mentor.com>
Tue, 20 Apr 2010 21:23:18 +0000 (14:23 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:34 +0000 (15:41 +0100)
(Bitbake rev: 211f44ce0e15c7c419606e9ef3568d9cea6775b7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/data.py

index 96ed6e1e4102d553396af2207f488af196c88517..636983edcce79c89e4e84d1d41a60c8c24804d59 100644 (file)
@@ -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: