diff options
author | Ross Burton <ross.burton@intel.com> | 2016-08-23 16:00:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-25 23:03:45 +0100 |
commit | ba736a345858131dbc5361b41f23f14675da913e (patch) | |
tree | 3aa73303c0b81614e44f01e9b679eaebb31173b4 /meta/classes/utils.bbclass | |
parent | 8670979d228d402b8a4331031ef7617c8284a926 (diff) | |
download | poky-ba736a345858131dbc5361b41f23f14675da913e.tar.gz |
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/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 2 |
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 () { | |||
303 | 303 | ||
304 | 304 | ||
305 | def check_app_exists(app, d): | 305 | def check_app_exists(app, d): |
306 | app = d.expand(app) | 306 | app = d.expand(app).strip() |
307 | path = d.getVar('PATH', d, True) | 307 | path = d.getVar('PATH', d, True) |
308 | return bool(bb.utils.which(path, app)) | 308 | return bool(bb.utils.which(path, app)) |
309 | 309 | ||