From: Ross Burton Date: Tue, 23 Aug 2016 15:00:02 +0000 (+0100) Subject: utils: check_app_exists: strip whitespace from binary when searching X-Git-Tag: uninative-1.4~439 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83;p=openembedded-core.git utils: check_app_exists: strip whitespace from binary when searching It's possible that the binary to be searched for contains whitespace which will cause the search to fail, so strip any whitespace before looking. Signed-off-by: Ross Burton --- diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index ce639b283e..59ace4421f 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -303,7 +303,7 @@ hardlinkdir () { def check_app_exists(app, d): - app = d.expand(app) + app = d.expand(app).strip() path = d.getVar('PATH', d, True) return bool(bb.utils.which(path, app))