From: claus.stovgaard@gmail.com
To: Ross Burton <Ross.Burton@arm.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [master][scarthgap][PATCH v2] lib/oe/package-manager: return early in install_complementary with empty globs
Date: Tue, 01 Oct 2024 09:52:06 +0200 [thread overview]
Message-ID: <e71402304dc8ca3e5e6fca4ad0e3a554b3a58438.camel@gmail.com> (raw)
In-Reply-To: <409E410E-1DE7-4294-898A-AF1841D6C3A4@arm.com>
On Mon, 2024-09-30 at 12:33 +0000, Ross Burton wrote:
> On 26 Sep 2024, at 21:40, Claus Stovgaard via lists.openembedded.org
> <claus.stovgaard=gmail.com@lists.openembedded.org> wrote:
> >
> > Return early when globs is either None or an empty string. If globs
> > is
> > an empty string from the self.d.getVar, we should skip the reset of
> > install_complementary, as the result from processing with empty
> > glob in
> > oe-pkgdata-util will always be 0 packages to install.
>
> This isn’t right: if the globs are empty then we can skip the
> processing of the globs, but this function also contains the locale
> archive generation which is then skipped.
>
Oh yes - you are correct. I focused to much on the top part, and the
with loop, so somehow it slipped. Nicely catch.
I see 3 options.
1) drop this patch, and keep doing the extra work.
2) invert the condition and move the with loop in under this condition
3) split the archiving out in seperate method, and then call it after
install_complementary the places where install_complementary is called
from. This option is what I belive you refering to below.
What do you think is the best options?
/Claus
> Ideally this function is tidied up a little as locale archive
> generation isn’t really related to complementary installation.
>
> Ross
next prev parent reply other threads:[~2024-10-01 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-26 20:40 [master][scarthgap][PATCH v2] lib/oe/package-manager: return early in install_complementary with empty globs Claus Stovgaard
2024-09-30 12:33 ` [OE-core] " Ross Burton
2024-10-01 7:52 ` claus.stovgaard [this message]
2024-10-01 9:21 ` Ross Burton
2024-10-07 16:44 ` Claus Stovgaard
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=e71402304dc8ca3e5e6fca4ad0e3a554b3a58438.camel@gmail.com \
--to=claus.stovgaard@gmail.com \
--cc=Ross.Burton@arm.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.