[Yum-devel] [PATCH] Pick already installed packages as "best" with provide install
seth vidal
skvidal at fedoraproject.org
Wed Jun 2 03:46:39 UTC 2010
On Tue, 2010-06-01 at 15:13 -0400, James Antill wrote:
> ---
> yum/depsolve.py | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/yum/depsolve.py b/yum/depsolve.py
> index 60b4e2f..8c260a7 100644
> --- a/yum/depsolve.py
> +++ b/yum/depsolve.py
> @@ -1168,6 +1168,10 @@ class Depsolve(object):
> # something else in the transaction. :(
> # there are many ways I hate this - this is but one
> ipkgresults[pkg] = 5
> + elif newest.verEQ(pkg):
> + # We get here from bestPackagesFromList(), give a giant
> + # bump to stuff that is already installed.
> + ipkgresults[pkg] = 1000
> else:
> # just b/c they're not installed pkgs doesn't mean they should
> # be ignored entirely. Just not preferred
ACK
-sv
More information about the Yum-devel
mailing list