diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-14 18:33:35 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-21 19:57:13 -0700 |
commit | 7b333b993db56b80538881c4fd910a0e8ba7cac1 (patch) | |
tree | d5a5cdbc95fa4e487119bbcfcb81c13f4b736ec9 /classes | |
parent | 38e03c6721fa068d40d1517892c1bad079a64c1f (diff) |
utils.bbclass: make check_app_exists slightly more pythonic
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/utils.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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) |