[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2064/8267] utils: check_app_exists: strip whitespace from binary when searching



commit ba736a345858131dbc5361b41f23f14675da913e
Author: Ross Burton <ross burton intel com>
Date:   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.
    
    (From OE-Core rev: 9e920abdb0f3dcfd1a94a90461ec1ddfb2729d83)
    
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]