[oe-commits] [openembedded-core] 11/46: utils.py: added sh_quote() function
git at git.openembedded.org
git at git.openembedded.org
Wed Apr 3 22:21:26 UTC 2019
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 dbad4667f0e4f49b28b37643656f9e5d80cfc992
Author: Enrico Scholz via Openembedded-core <openembedded-core at lists.openembedded.org>
AuthorDate: Wed Apr 3 17:41:31 2019 +0200
utils.py: added sh_quote() function
This function is a wrapper around "shlex.quote()" and can be used in
"${@...}" context where shlex (or pipes, which provides similar
functionality) is unavailable.
Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oe/utils.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 3a49609..cedd053 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -490,3 +490,6 @@ class ImageQAFailed(bb.build.FuncFailed):
return msg
+def sh_quote(string):
+ import shlex
+ return shlex.quote(string)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list