utils.bbclass: make check_app_exists slightly more pythonic
authorChris Larson <chris_larson@mentor.com>
Thu, 15 Apr 2010 01:33:35 +0000 (18:33 -0700)
committerChris Larson <chris_larson@mentor.com>
Thu, 22 Apr 2010 02:57:13 +0000 (19:57 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/utils.bbclass

index 6081b1e..1cc6d2b 100644 (file)
@@ -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)