From: Laurentiu Palcu <laurentiu.palcu@intel.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] lib/oe/rootfs.py: fix RPM multilib issue
Date: Thu, 13 Feb 2014 13:50:37 +0200 [thread overview]
Message-ID: <20140213115036.GK10078@lpalcu-linux> (raw)
In-Reply-To: <1392291156.14081.9.camel@ted>
On Thu, Feb 13, 2014 at 11:32:36AM +0000, Richard Purdie wrote:
> On Wed, 2014-02-12 at 20:54 +0200, Laurentiu Palcu wrote:
> > For some odd reason (at least I couldn't find an explanation to this,
> > yet), if a multilib version of a package is installed after the main one
> > (that is: in a different smart session), the main package binaries are
> > not overwritten.
> >
> > This commit restores the functionality to the original one, before
> > migrating to python: feed all the packages to smart, apart from attempt
> > only ones which are installed separately.
> >
> > Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> > ---
> > meta/lib/oe/rootfs.py | 16 ++++++++++++----
> > 1 file changed, 12 insertions(+), 4 deletions(-)
> >
> > diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
> > index b6baf77..9162e52 100644
> > --- a/meta/lib/oe/rootfs.py
> > +++ b/meta/lib/oe/rootfs.py
> > @@ -317,10 +317,18 @@ class RpmRootfs(Rootfs):
> >
> > self.pm.update()
> >
> > - for pkg_type in self.install_order:
> > - if pkg_type in pkgs_to_install:
> > - self.pm.install(pkgs_to_install[pkg_type],
> > - [False, True][pkg_type == "aop"])
> > + pkgs = []
> > + pkgs_attempt = []
> > + for pkg_type in pkgs_to_install:
> > + if pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY:
> > + pkgs_attempt = pkgs_to_install[pkg_type]
>
> Should this be a += ?
Indeed, I guess I was thinking that there can be only one attempt only
list. Nevertheless, should be += there. Thanks!
>
> This might be clearer as an if: else:
Agreed.
Incoming v2...
laurentiu
>
> > + continue
> > +
> > + pkgs += pkgs_to_install[pkg_type]
> > +
> > + self.pm.install(pkgs)
> > +
> > + self.pm.install(pkgs_attempt, True)
> >
> > self.pm.install_complementary()
> >
>
>
prev parent reply other threads:[~2014-02-13 11:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-12 18:54 [PATCH 0/1] lib/oe/rootfs.py: fix RPM multilib issue Laurentiu Palcu
2014-02-12 18:54 ` [PATCH 1/1] " Laurentiu Palcu
2014-02-12 19:46 ` Mark Hatle
2014-02-13 8:25 ` Laurentiu Palcu
2014-02-13 11:32 ` Richard Purdie
2014-02-13 11:50 ` Laurentiu Palcu [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=20140213115036.GK10078@lpalcu-linux \
--to=laurentiu.palcu@intel.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