]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe.data: expand the flags
authorChris Larson <chris_larson@mentor.com>
Tue, 29 Mar 2011 19:53:28 +0000 (12:53 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2011 16:33:17 +0000 (17:33 +0100)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
meta/lib/oe/data.py

index 8b7c3cd7898fcb6a5f05964073fb88a402f2acc1..4b4d03eaa47fa785b20914f5580e0c20a7dc66fe 100644 (file)
@@ -6,6 +6,11 @@ def typed_value(key, d):
     to determine the type and parameters for construction."""
     var_type = d.getVarFlag(key, 'type')
     flags = d.getVarFlags(key)
+    if flags is not None:
+        flags = dict((flag, bb.data.expand(value, d))
+                     for flag, value in flags.iteritems())
+    else:
+        flags = {}
 
     try:
         return oe.maketype.create(d.getVar(key, True) or '', var_type, **flags)