[oe-commits] Chris Larson : oe.data: expand the flags
git version control
git at git.openembedded.org
Fri May 20 16:40:37 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: 8b9de6d2ad2d351bbc288cbb12562806ba8edae2
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8b9de6d2ad2d351bbc288cbb12562806ba8edae2
Author: Chris Larson <chris_larson at mentor.com>
Date: Tue Mar 29 12:53:28 2011 -0700
oe.data: expand the flags
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
meta/lib/oe/data.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
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)
More information about the Openembedded-commits
mailing list