classes/utils: which is in bb.utils not in bb
PATCH 1/1 classes/utils: which is in bb.utils not in bb
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(-)
meta/classes/utils.bbclass +5 -4
@@ -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)
Signature · 1 line
1.8.3.1