[Yum-devel] [PATCH 2/2] Fix cross arch downgrades via. remove + install

Tim Lauridsen tim.lauridsen at googlemail.com
Tue Jan 5 10:13:17 UTC 2010


On Tue, Jan 5, 2010 at 12:04 AM, James Antill <james at and.org> wrote:

> ---
>  yum/__init__.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/yum/__init__.py b/yum/__init__.py
> index 9e4a25e..3e4c7b0 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -2954,7 +2954,8 @@ class YumBase(depsolve.Depsolve):
>                     # and a remove, which also tries to remove the old
> version.
>                     self.tsInfo.remove(ipkg.pkgtup)
>                     break
> -                if ipkg.verGT(po):
> +            for ipkg in self.rpmdb.searchNevra(name=po.name):
> +                if ipkg.verGT(po) and not canCoinstall(ipkg.arch,
> po.arch):
>                     self._add_prob_flags(rpm.RPMPROB_FILTER_OLDPACKAGE)
>                     break
>
> --
> 1.6.5.2
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>

ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100105/8866335f/attachment.htm>


More information about the Yum-devel mailing list