Skip to contentSkip to conversation

package.py: use single quotes for path passed to file in is_elf()

PATCH New Andre McCurdy 1 participant 1 message Apr 18, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 meta/lib/oe/package.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/lib/oe/package.py +1 -2
index 599fca6..4f3e21a 100644
@@ -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)
Signature · 1 line
1.9.1