[oe] [PATCH 12/12] task-base.bb: use uniform test for set
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Mon Feb 8 21:14:33 UTC 2010
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
recipes/tasks/task-base.bb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/recipes/tasks/task-base.bb b/recipes/tasks/task-base.bb
index d59acba..fc04b46 100644
--- a/recipes/tasks/task-base.bb
+++ b/recipes/tasks/task-base.bb
@@ -136,7 +136,9 @@ python __anonymous () {
import bb
- if not hasattr(__builtins__, 'set'):
+ try:
+ set
+ except NameError:
from sets import Set as set
distro_features = set(bb.data.getVar("DISTRO_FEATURES", d, 1).split())
--
1.6.5
More information about the Openembedded-devel
mailing list