summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
authorEnrico Scholz via Openembedded-core <openembedded-core@lists.openembedded.org>2019-04-03 15:41:31 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-04 21:57:32 (GMT)
commit1891a852b28b14539e23690d89fd6d2528f3ae81 (patch)
tree4d1930d67ddd617f1a39cf82779a448003ecec3d /meta/lib/oe/utils.py
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/oe/utils.py')
-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 3a49609..cedd053 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)