Patchwork [bitbake-devel,2/2] data_smart: skip all interal (underscored) flags in getVarFlags

login
register
mail settings
Submitter Ross Burton
Date Aug. 21, 2012, 4:16 p.m.
Message ID <1345565786-23409-2-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/35071/
State New
Headers show

Comments

Ross Burton - Aug. 21, 2012, 4:16 p.m.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 bitbake/lib/bb/data_smart.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index dbfcefb..f5f3b13 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -379,7 +379,7 @@  class DataSmart(MutableMapping):
 
         if local_var:
             for i in local_var:
-                if i == "_content":
+                if i.startswith("_"):
                     continue
                 flags[i] = local_var[i]