This works now because of bitbake's deprecated_imports, but those
might be removed so let's change it.

Signed-off-by: Stefan Stanacar <[email protected]>
---
 meta/classes/utils.bbclass | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index e873c53..f9a451a 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -293,11 +293,12 @@ END
 }
 
 def check_app_exists(app, d):
-    from bb import which, data
+    import bb.utils
+    import bb.data
 
-    app = data.expand(app, d)
-    path = data.getVar('PATH', d, 1)
-    return bool(which(path, app))
+    app = bb.data.expand(app, d)
+    path = bb.data.getVar('PATH', d, 1)
+    return bool(bb.utils.which(path, app))
 
 def explode_deps(s):
     return bb.utils.explode_deps(s)
-- 
1.8.3.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to