mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
package.py: use single quotes for path passed to file in is_elf()
Align package.py is_elf() with recent changes in package.bbclass isELF(): http://git.openembedded.org/openembedded-core/commit/?id=7877761534b0c2492da6289e9f2269d41b6ed464 (From OE-Core rev: ab056c7f6065f310be4dd256ceb45f85ff981f69) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e06ab7c88d
commit
fd5488ba75
@@ -72,8 +72,7 @@ def strip_execs(pn, dstdir, strip_cmd, libdir, base_libdir, qa_already_stripped=
|
||||
# 16 - kernel module
|
||||
def is_elf(path):
|
||||
exec_type = 0
|
||||
ret, result = oe.utils.getstatusoutput(
|
||||
"file -b \"%s\"" % path.replace("\"", "\\\""))
|
||||
ret, result = oe.utils.getstatusoutput("file -b '%s'" % path)
|
||||
|
||||
if ret:
|
||||
bb.error("split_and_strip_files: 'file %s' failed" % path)
|
||||
|
||||
Reference in New Issue
Block a user