[oe-commits] [openembedded-core] 28/28: utils.bbclass: Support applications with arguments in check_app_exist()
git at git.openembedded.org
git at git.openembedded.org
Fri Oct 6 11:06:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 5193ebca0ca8864404fc750def0e738417d104c7
Author: Nikolay Merinov <n.merinov at inango-systems.com>
AuthorDate: Thu Oct 5 12:46:07 2017 +0500
utils.bbclass: Support applications with arguments in check_app_exist()
check_app_exist function must support cases when "app" variable defined
as "progname --args". For example BUILD_CC="gcc -march=x86-64" must
pass sanity check.
Signed-off-by: Nikolay Merinov <n.merinov at inango-systems.com>
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 081e662..8e07eac 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -320,7 +320,7 @@ hardlinkdir () {
def check_app_exists(app, d):
- app = d.expand(app).strip()
+ app = d.expand(app).split()[0].strip()
path = d.getVar('PATH')
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