From: Felipe Ferreri Tonello <eu@felipetonello.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] package.bbclass: Fix split_and_strip_files when file has single quote (')
Date: Thu, 31 Oct 2013 20:11:51 -0700 [thread overview]
Message-ID: <52731BF7.1070302@felipetonello.com> (raw)
In-Reply-To: <1383272753-20012-1-git-send-email-eu@felipetonello.com>
On 10/31/2013 07:25 PM, eu@felipetonello.com wrote:
> From: "Felipe F. Tonello" <eu@felipetonello.com>
>
> 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.
>
> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
> ---
> meta/classes/package.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index b0f44c7..a12b7b7 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -747,7 +747,7 @@ python split_and_strip_files () {
> # 16 - kernel module
> def isELF(path):
> type = 0
> - ret, result = oe.utils.getstatusoutput("file '%s'" % path)
> + ret, result = oe.utils.getstatusoutput("file '%s'" % path.replace("'", "\\'"))
>
> if ret:
> msg = "split_and_strip_files: 'file %s' failed" % path
>
I just found a bug in this implementation. I will send a v2 shortly.
Felipe
next prev parent reply other threads:[~2013-11-01 3:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 2:25 [PATCH] package.bbclass: Fix split_and_strip_files when file has single quote (') eu
2013-11-01 3:11 ` Felipe Ferreri Tonello [this message]
2013-11-01 3:47 ` Chris Larson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52731BF7.1070302@felipetonello.com \
--to=eu@felipetonello.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox