From: Enrico Scholz via Openembedded-core Date: Wed, 3 Apr 2019 15:41:31 +0000 (+0200) Subject: utils.py: added sh_quote() function X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~14912 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=127141f5023a7e3fc3963dc7d76cfce9067a9e8a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 3a496090f3a..cedd053d362 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)