Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Gundlupet Raju, Sandeep" <sandeep.gundlupet-raju@amd.com>
To: openembedded-core@lists.openembedded.org,
	Richard Purdie <richard.purdie@linuxfoundation.org>,
	"Hatle, Mark" <mark.hatle@amd.com>
Subject: Re: [OE-core] [PATCH 1/2] wic: engine.py: use raw string for escape sequence
Date: Mon, 8 Jul 2024 11:56:58 -0600	[thread overview]
Message-ID: <04d0dd97-6e67-4d5c-a82f-e4ec5f0465f6@amd.com> (raw)
In-Reply-To: <20240604080621.1885249-1-ejo@pengutronix.de>

Hi RP,

We do see this issue in scarthgap, Can you get this patch backported to 
scarthgap branch?

Thanks,

Sandeep

On 6/4/2024 2:06 AM, Enrico Jörns via lists.openembedded.org wrote:
> Fixes:
>
> | poky/scripts/lib/wic/engine.py:362: SyntaxWarning: invalid escape sequence '\/'
>
> Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
> ---
>   scripts/lib/wic/engine.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
> index 674ccfc244..ce7e6c5d75 100644
> --- a/scripts/lib/wic/engine.py
> +++ b/scripts/lib/wic/engine.py
> @@ -359,7 +359,7 @@ class Disk:
>           Remove files/dirs and their contents from the partition.
>           This only applies to ext* partition.
>           """
> -        abs_path = re.sub('\/\/+', '/', path)
> +        abs_path = re.sub(r'\/\/+', '/', path)
>           cmd = "{} {} -wR 'rm \"{}\"'".format(self.debugfs,
>                                               self._get_part_image(pnum),
>                                               abs_path)
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#200302): https://lists.openembedded.org/g/openembedded-core/message/200302
> Mute This Topic: https://lists.openembedded.org/mt/106478736/3619217
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [sandeep.gundlupet-raju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


  parent reply	other threads:[~2024-07-08 17:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-04  8:06 [PATCH 1/2] wic: engine.py: use raw string for escape sequence Enrico Jörns
2024-06-04  8:06 ` [PATCH 2/2] wic: bootimg-efi: fix error handling Enrico Jörns
2024-07-08 17:56 ` Gundlupet Raju, Sandeep [this message]
2024-07-08 21:32   ` [OE-core] [PATCH 1/2] wic: engine.py: use raw string for escape sequence Richard Purdie
2024-07-09 13:12     ` Steve Sakoman
2024-07-09 15:21       ` Gundlupet Raju, Sandeep
2024-07-09 15:41         ` Steve Sakoman

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=04d0dd97-6e67-4d5c-a82f-e4ec5f0465f6@amd.com \
    --to=sandeep.gundlupet-raju@amd.com \
    --cc=mark.hatle@amd.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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