summaryrefslogtreecommitdiff
path: root/meta/classes/utils.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-08-23 16:00:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 22:59:14 +0100
commit9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83 (patch)
treed61eece17e06239ce9c80a3e3a58c44bf0f790d0 /meta/classes/utils.bbclass
parent59d10be745a1f7d31c68e4d5da9e1c3461b7d390 (diff)
downloadopenembedded-core-9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83.tar.gz
openembedded-core-9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83.tar.bz2
openembedded-core-9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83.zip
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>
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r--meta/classes/utils.bbclass2
1 files changed, 1 insertions, 1 deletions
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))