From fd5488ba752f115a15b73f4ad1b3c3839e0dd7d6 Mon Sep 17 00:00:00 2001 From: Andre McCurdy Date: Wed, 18 Apr 2018 15:10:23 -0700 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oe/package.py | 3 +-- 1 file changed, 1 insertion(+), 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= # 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) -- cgit v1.2.3-54-g00ecf