[Yum-devel] Depsolving I don't understand

Jeroen van Meeuwen kanarip at kanarip.com
Sun Apr 5 21:01:38 UTC 2009


I found the following situation:

On an x86_64 system, I get a list of package names (['foo']).
I resolve the package names to actual available packages (pos),
and select them all (sorry 'bout that)

Then of course, given pkgpolicy=newest and multilib_policy=best, yum -d9 
shows the following as a result of yum/depsolve:993:_compare_providers() 
(in order of best match, see snippet below):

foo-1.0.x86_64, foo-1.1.x86_64, (both equal score)
foo-1.0.i386, foo-1.1.i386 (both equal but lower score)

The resulting transaction has foo-1.0.x86_64.

My question here is, shouldn't _compare_providers() take into account 
version numbers as well?

I realize though my ayum.tsInfo.addInstall() of a po isn't supposed to 
happen (should have used ayum.install()), but I wanted to put this in 
front of you anyway.

Kind regards,

Jeroen van Meeuwen
-kanarip

==
Snippet:

Running compare_providers() for [<YumAvailablePackageSqlite : 
kdeedu-libs-4.1.2-2.fc10.i386 (0x3e67110)>, <YumAvailablePackageSqlite : 
kdeedu-libs-4.1.2-2.fc10.x86_64 (0x51792d0)>, <YumAvailablePackageSqlite 
: kdeedu-libs-4.2.1-2.fc
10.1.x86_64 (0x6b9bf90)>, <YumAvailablePackageSqlite : 
kdeedu-libs-4.2.1-2.fc10.1.i386 (0x6ba2550)>]
better arch in po kdeedu-libs-4.1.2-2.fc10.x86_64
archdist compared kdeedu-libs-4.1.2-2.fc10.i386 to 
kdeedu-libs-4.1.2-2.fc10.x86_64 on ia32e
   Winner: kdeedu-libs-4.1.2-2.fc10.x86_64
better arch in po kdeedu-libs-4.2.1-2.fc10.1.x86_64
archdist compared kdeedu-libs-4.1.2-2.fc10.i386 to 
kdeedu-libs-4.2.1-2.fc10.1.x86_64 on ia32e
   Winner: kdeedu-libs-4.2.1-2.fc10.1.x86_64
archdist compared kdeedu-libs-4.1.2-2.fc10.x86_64 to 
kdeedu-libs-4.1.2-2.fc10.i386 on ia32e
   Winner: kdeedu-libs-4.1.2-2.fc10.x86_64
archdist compared kdeedu-libs-4.1.2-2.fc10.x86_64 to 
kdeedu-libs-4.2.1-2.fc10.1.i386 on ia32e
   Winner: kdeedu-libs-4.1.2-2.fc10.x86_64
archdist compared kdeedu-libs-4.2.1-2.fc10.1.x86_64 to 
kdeedu-libs-4.1.2-2.fc10.i386 on ia32e
   Winner: kdeedu-libs-4.2.1-2.fc10.1.x86_64
archdist compared kdeedu-libs-4.2.1-2.fc10.1.x86_64 to 
kdeedu-libs-4.2.1-2.fc10.1.i386 on ia32e
   Winner: kdeedu-libs-4.2.1-2.fc10.1.x86_64
better arch in po kdeedu-libs-4.1.2-2.fc10.x86_64
archdist compared kdeedu-libs-4.2.1-2.fc10.1.i386 to 
kdeedu-libs-4.1.2-2.fc10.x86_64 on ia32e
   Winner: kdeedu-libs-4.1.2-2.fc10.x86_64
better arch in po kdeedu-libs-4.2.1-2.fc10.1.x86_64
archdist compared kdeedu-libs-4.2.1-2.fc10.1.i386 to 
kdeedu-libs-4.2.1-2.fc10.1.x86_64 on ia32e
   Winner: kdeedu-libs-4.2.1-2.fc10.1.x86_64
Best Order: [(<YumAvailablePackageSqlite : 
kdeedu-libs-4.1.2-2.fc10.x86_64 (0x51792d0)>, -1), 
(<YumAvailablePackageSqlite : kdeedu-libs-4.2.1-2.fc10.1.x86_64 
(0x6b9bf90)>, -1), (<YumAvailablePackageSqlite : kdeedu-libs-4.1.2-2.fc10.
i386 (0x3e67110)>, -11), (<YumAvailablePackageSqlite : 
kdeedu-libs-4.2.1-2.fc10.1.i386 (0x6ba2550)>, -11)]


More information about the Yum-devel mailing list