summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorEnrico Scholz via Openembedded-core <openembedded-core@lists.openembedded.org>2019-04-03 17:41:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-04 22:57:32 +0100
commit1891a852b28b14539e23690d89fd6d2528f3ae81 (patch)
tree4d1930d67ddd617f1a39cf82779a448003ecec3d /meta/lib
parentaa3cc017343cf1a54b77b27d16cd984b285b9317 (diff)
downloadpoky-1891a852b28b14539e23690d89fd6d2528f3ae81.tar.gz
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. (From OE-Core rev: 127141f5023a7e3fc3963dc7d76cfce9067a9e8a) Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 3a496090f3..cedd053d36 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -490,3 +490,6 @@ class ImageQAFailed(bb.build.FuncFailed):
490 490
491 return msg 491 return msg
492 492
493def sh_quote(string):
494 import shlex
495 return shlex.quote(string)