summaryrefslogtreecommitdiffstats
path: root/meta
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 23:03:45 +0100
commitba736a345858131dbc5361b41f23f14675da913e (patch)
tree3aa73303c0b81614e44f01e9b679eaebb31173b4 /meta
parent8670979d228d402b8a4331031ef7617c8284a926 (diff)
downloadopenembedded-core-contrib-ba736a345858131dbc5361b41f23f14675da913e.tar.gz
openembedded-core-contrib-ba736a345858131dbc5361b41f23f14675da913e.tar.bz2
openembedded-core-contrib-ba736a345858131dbc5361b41f23f14675da913e.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. (From OE-Core rev: 9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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))