[oe-commits] Chris Larson : utils.bbclass: make check_app_exists slightly more pythonic
git version control
git at git.openembedded.org
Thu Apr 22 02:57:30 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 7b333b993db56b80538881c4fd910a0e8ba7cac1
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7b333b993db56b80538881c4fd910a0e8ba7cac1
Author: Chris Larson <chris_larson at mentor.com>
Date: Wed Apr 14 18:33:35 2010 -0700
utils.bbclass: make check_app_exists slightly more pythonic
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
classes/utils.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/classes/utils.bbclass b/classes/utils.bbclass
index 6081b1e..1cc6d2b 100644
--- a/classes/utils.bbclass
+++ b/classes/utils.bbclass
@@ -487,7 +487,7 @@ def check_app_exists(app, d):
app = data.expand(app, d)
path = data.getVar('PATH', d, 1)
- return len(which(path, app)) != 0
+ return bool(which(path, app))
def explode_deps(s):
return bb.utils.explode_deps(s)
More information about the Openembedded-commits
mailing list