aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/utils.bbclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index e873c539c5..d1f6563a0a 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -293,11 +293,9 @@ END
}
def check_app_exists(app, d):
- from bb import which, data
-
- app = data.expand(app, d)
- path = data.getVar('PATH', d, 1)
- return bool(which(path, app))
+ app = d.expand(app)
+ path = d.getVar('PATH', d, True)
+ return bool(bb.utils.which(path, app))
def explode_deps(s):
return bb.utils.explode_deps(s)