]> code.ossystems Code Review - openembedded-core.git/commitdiff
utils: check_app_exists: strip whitespace from binary when searching
authorRoss Burton <ross.burton@intel.com>
Tue, 23 Aug 2016 15:00:02 +0000 (16:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2016 21:59:14 +0000 (22:59 +0100)
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 <ross.burton@intel.com>
meta/classes/utils.bbclass

index ce639b283edf2819fc02b753e8f333fff08f72ad..59ace4421f0d5a08a64d6c48bb21f57a00145ccc 100644 (file)
@@ -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))