summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2018-05-04 12:31:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-08 15:37:17 +0100
commit9915e071bcadd7c4d5363a067c529889851d37a5 (patch)
tree6103eea2527d16c8d9dd8984e579354d954743af /meta/lib/oe
parentfebd2e26a3a39024bbc49e7dd0b34ddc6e60ba98 (diff)
downloadpoky-9915e071bcadd7c4d5363a067c529889851d37a5.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: 5fcb57ffd67384b3487d0a1b83a1f13d52a15eb7) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry picked from commit ab056c7f6065f310be4dd256ceb45f85ff981f69) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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)