[oe-commits] [openembedded-core] 11/50: utils: check_app_exists: strip whitespace from binary when searching

git at git.openembedded.org git at git.openembedded.org
Thu Aug 25 22:04:27 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue Aug 23 16:00:02 2016 +0100

    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 at 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))
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list