* [PATCH] utils: check_app_exists: strip whitespace from binary when searching
@ 2016-08-23 15:01 Ross Burton
0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2016-08-23 15:01 UTC (permalink / raw)
To: openembedded-core
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index ce639b2..59ace44 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))
--
2.8.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-23 15:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 15:01 [PATCH] utils: check_app_exists: strip whitespace from binary when searching Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox