[OE-core] [PATCH] classes/utils: which is in bb.utils not in bb
Stefan Stanacar
stefanx.stanacar at intel.com
Tue Sep 17 07:38:50 UTC 2013
This works now because of bitbake's deprecated_imports, but those
might be removed so let's change it.
Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
---
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
More information about the Openembedded-core
mailing list