From: Chris Larson Date: Thu, 15 Apr 2010 01:33:35 +0000 (-0700) Subject: utils.bbclass: make check_app_exists slightly more pythonic X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b333b993db56b80538881c4fd910a0e8ba7cac1;p=openembedded.git utils.bbclass: make check_app_exists slightly more pythonic Signed-off-by: Chris Larson --- diff --git a/classes/utils.bbclass b/classes/utils.bbclass index 6081b1e652..1cc6d2b162 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)