From 7b333b993db56b80538881c4fd910a0e8ba7cac1 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 14 Apr 2010 18:33:35 -0700 Subject: utils.bbclass: make check_app_exists slightly more pythonic Signed-off-by: Chris Larson --- classes/utils.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/utils.bbclass') 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) -- cgit 1.2.3-korg