mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
aa3cc01734
commit
1891a852b2
@@ -490,3 +490,6 @@ class ImageQAFailed(bb.build.FuncFailed):
|
||||
|
||||
return msg
|
||||
|
||||
def sh_quote(string):
|
||||
import shlex
|
||||
return shlex.quote(string)
|
||||
|
||||
Reference in New Issue
Block a user