diff options
| author | Enrico Scholz via Openembedded-core <openembedded-core@lists.openembedded.org> | 2019-04-03 17:41:31 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-04 22:57:32 +0100 |
| commit | 1891a852b28b14539e23690d89fd6d2528f3ae81 (patch) | |
| tree | 4d1930d67ddd617f1a39cf82779a448003ecec3d | |
| parent | aa3cc017343cf1a54b77b27d16cd984b285b9317 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/lib/oe/utils.py | 3 |
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 | ||
| 493 | def sh_quote(string): | ||
| 494 | import shlex | ||
| 495 | return shlex.quote(string) | ||
