[oe-commits] Chris Larson : task-base: change the 'set' logic to work a bit better
git version control
git at git.openembedded.org
Fri Apr 9 11:14:22 UTC 2010
Module: openembedded.git
Branch: shr/unstable
Commit: 71d0e0501bb80469ba93e6f5bbdddbe985c0acc0
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=71d0e0501bb80469ba93e6f5bbdddbe985c0acc0
Author: Chris Larson <chris_larson at mentor.com>
Date: Thu Apr 8 17:24:49 2010 -0700
task-base: change the 'set' logic to work a bit better
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
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 555a463..bc1324b 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())
More information about the Openembedded-commits
mailing list