summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2018-04-18 15:10:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-20 08:12:17 +0100
commitfd5488ba752f115a15b73f4ad1b3c3839e0dd7d6 (patch)
treeeb73c47cc723b3dabc9709fc462e27884e389055 /meta
parente06ab7c88dc8e0e9af584254f43ae6a66b01eb92 (diff)
downloadpoky-fd5488ba752f115a15b73f4ad1b3c3839e0dd7d6.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 599fca60f8..4f3e21ad40 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -72,8 +72,7 @@ def strip_execs(pn, dstdir, strip_cmd, libdir, base_libdir, qa_already_stripped=
72 # 16 - kernel module 72 # 16 - kernel module
73 def is_elf(path): 73 def is_elf(path):
74 exec_type = 0 74 exec_type = 0
75 ret, result = oe.utils.getstatusoutput( 75 ret, result = oe.utils.getstatusoutput("file -b '%s'" % path)
76 "file -b \"%s\"" % path.replace("\"", "\\\""))
77 76
78 if ret: 77 if ret:
79 bb.error("split_and_strip_files: 'file %s' failed" % path) 78 bb.error("split_and_strip_files: 'file %s' failed" % path)