diff options
author | Felipe F. Tonello <eu@felipetonello.com> | 2013-10-31 20:51:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-05 22:04:27 +0000 |
commit | 8f84cc99bd1ea946317c87f00ea343b80d9c9a4d (patch) | |
tree | 252f944d764e2c06d6651933856d7eab1a585214 | |
parent | e82320a480984f37a0fc570b6e4ff1c00074ee49 (diff) | |
download | poky-8f84cc99bd1ea946317c87f00ea343b80d9c9a4d.tar.gz |
package.bbclass: Fix split_and_strip_files when file has single quote (')
Fix false error report when a file that has a single quote by escaping
the single quote. Some packages might install files with quotes, such
as music files and other types, that will cause the problem.
(From OE-Core rev: 212471f81d210e596798db5e5d927418090a63a2)
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/package.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index b0f44c7faf..48bb9828f5 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -747,7 +747,7 @@ python split_and_strip_files () { | |||
747 | # 16 - kernel module | 747 | # 16 - kernel module |
748 | def isELF(path): | 748 | def isELF(path): |
749 | type = 0 | 749 | type = 0 |
750 | ret, result = oe.utils.getstatusoutput("file '%s'" % path) | 750 | ret, result = oe.utils.getstatusoutput("file \"%s\"" % path.replace("\"", "\\\"")) |
751 | 751 | ||
752 | if ret: | 752 | if ret: |
753 | msg = "split_and_strip_files: 'file %s' failed" % path | 753 | msg = "split_and_strip_files: 'file %s' failed" % path |