diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-08 17:24:49 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-08 17:25:57 -0700 |
commit | 71d0e0501bb80469ba93e6f5bbdddbe985c0acc0 (patch) | |
tree | 0d52ac996ec2b9ff51a71ec258907b7cd4af3b5e /recipes | |
parent | 444d86f372b599d0d72c0c8e56ee3cb923ee0515 (diff) |
task-base: change the 'set' logic to work a bit better
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/tasks/task-base.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/tasks/task-base.bb b/recipes/tasks/task-base.bb index 555a463635..bc1324ba86 100644 --- a/recipes/tasks/task-base.bb +++ b/recipes/tasks/task-base.bb @@ -137,9 +137,9 @@ python __anonymous () { import bb try: - set - except NameError: - from sets import Set as set + set = __builtins__["set"] + except KeyError: + from sets import Set as set distro_features = set(bb.data.getVar("DISTRO_FEATURES", d, 1).split()) machine_features= set(bb.data.getVar("MACHINE_FEATURES", d, 1).split()) |