From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: "Davide Gardenal" <davidegarde2000@gmail.com>
Cc: openembedded-core@lists.openembedded.org,
Davide Gardenal <davide.gardenal@huawei.com>
Subject: Re: [OE-core] [master][kirkstone][PATCH v2] rootfs-postcommands: fix symlinks where link and output path are equal
Date: Wed, 4 May 2022 10:26:20 +0200 [thread overview]
Message-ID: <20220504102620.0ded9ccf@melee> (raw)
In-Reply-To: <20220503095627.12752-1-davide.gardenal@huawei.com>
Hi Davide,
Il giorno Tue, 3 May 2022 11:56:27 +0200
"Davide Gardenal" <davidegarde2000@gmail.com> ha scritto:
> When creating the manifest and the testdata.json links, if the link
> name is equal to the output name the link is not created, otherwise
> it is. This prevents a link-to-self in the first case.
>
> Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
> ---
> Updates:
> - v2: change tabs into spaces
> ---
> meta/classes/rootfs-postcommands.bbclass | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
> diff --git a/meta/classes/rootfs-postcommands.bbclass
> b/meta/classes/rootfs-postcommands.bbclass index
> 7b92df69c5..2fa388ba95 100644 ---
> a/meta/classes/rootfs-postcommands.bbclass +++
> b/meta/classes/rootfs-postcommands.bbclass @@ -267,9 +267,10 @@
> python write_image_manifest () {
> if os.path.exists(manifest_name) and link_name:
> manifest_link = deploy_dir + "/" + link_name + ".manifest"
> - if os.path.lexists(manifest_link):
> - os.remove(manifest_link)
> - os.symlink(os.path.basename(manifest_name), manifest_link)
> + if manifest_link != manifest_name
A missing ':' here causes parsing failures:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3616/steps/13/logs/stdio
At least some testing should be done on any patch before being sent. It
looks like either this didn't happen or the patch got mangled before it
was sent. Did you use 'git send-email' to send it?
Best regards.
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2022-05-04 8:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-03 9:56 [master][kirkstone][PATCH v2] rootfs-postcommands: fix symlinks where link and output path are equal Davide Gardenal
2022-05-04 8:26 ` Luca Ceresoli [this message]
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=20220504102620.0ded9ccf@melee \
--to=luca.ceresoli@bootlin.com \
--cc=davide.gardenal@huawei.com \
--cc=davidegarde2000@gmail.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 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.