From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: openembedded-core@lists.openembedded.org,
Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [PATCH 1/2] classes/package_rpm: additionally escape \ and " in filenames
Date: Thu, 1 Feb 2024 01:02:00 +0100 [thread overview]
Message-ID: <2024020100020005ae4aed@mail.local> (raw)
In-Reply-To: <20240131120438.1097632-1-alex@linutronix.de>
On 31/01/2024 13:04:37+0100, Alexander Kanavin wrote:
> As specified in:
> https://github.com/rpm-software-management/rpm/blob/rpm-4.19.x/docs/manual/spec.md#shell-globbing
>
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
> meta/classes-global/package_rpm.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes-global/package_rpm.bbclass b/meta/classes-global/package_rpm.bbclass
> index 819ee502783..c9354734756 100644
> --- a/meta/classes-global/package_rpm.bbclass
> +++ b/meta/classes-global/package_rpm.bbclass
> @@ -217,7 +217,7 @@ python write_specfile () {
> return "%attr({:o},{},{}) ".format(mode, owner, group)
>
> def escape_chars(p):
> - return p.replace("%", "%%")
> + return p.replace("%", "%%").replace("\\", "\\\\").replace('"', '\\"'))
File "/home/pokybuild/yocto-worker/build-appliance/build/meta/classes-global/package_rpm.bbclass", line 220
return p.replace("%", "%%").replace("\\", "\\\\").replace('"', '\\"'))
^
SyntaxError: unmatched ')'
>
> path = rootpath.replace(walkpath, "")
> if path.endswith("DEBIAN") or path.endswith("CONTROL"):
> --
> 2.39.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#194515): https://lists.openembedded.org/g/openembedded-core/message/194515
> Mute This Topic: https://lists.openembedded.org/mt/104073360/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-02-01 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 12:04 [PATCH 1/2] classes/package_rpm: additionally escape \ and " in filenames Alexander Kanavin
2024-01-31 12:04 ` [PATCH 2/2] classes/package_rpm: streamline the logic in one of the condition blocks Alexander Kanavin
2024-02-01 0:02 ` Alexandre Belloni [this message]
2024-02-01 9:15 ` [OE-core] [PATCH 1/2] classes/package_rpm: additionally escape \ and " in filenames Alexander Kanavin
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=2024020100020005ae4aed@mail.local \
--to=alexandre.belloni@bootlin.com \
--cc=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.