Browse Source

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 <ross.burton@intel.com>
Ross Burton 7 years ago
parent
commit
9e920abdb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      meta/classes/utils.bbclass

+ 1 - 1
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))