Patchwork [2/5] oe.data: expand the flags

login
register
mail settings
Submitter Christopher Larson
Date May 18, 2011, 9:02 p.m.
Message ID <33f8286787326128301ce3ab8c1144bc86a9364e.1305752502.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/4401/
State New, archived
Headers show

Comments

Christopher Larson - May 18, 2011, 9:02 p.m.
From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 meta/lib/oe/data.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/lib/oe/data.py b/meta/lib/oe/data.py
index 8b7c3cd..4b4d03e 100644
--- a/meta/lib/oe/data.py
+++ b/meta/lib/oe/data.py
@@ -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)