[Yum-devel] freaky

seth vidal skvidal at fedoraproject.org
Wed Dec 12 08:12:06 UTC 2007


fedora 8 - i686 box:

yum list kernel
Installed Packages
kernel.i686                   2.6.23.1-49.fc8        installed       
Available Packages
kernel.i586                   2.6.23.8-63.fc8        updates         
kernel.i686                   2.6.23.8-63.fc8        updates      

why the kernel.i586 is listed is whatever but now watch this:

yum install kernel
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.23.1-42.fc8 set to be installed
---> Package kernel.i686 0:2.6.23.8-63.fc8 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository
Size 
=============================================================================
Installing:
 kernel             i686       2.6.23.1-42.fc8  fedora             16 M
 kernel             i686       2.6.23.8-63.fc8  updates            16 M

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 32 M
Is this ok [y/N]:

the hell?

okay now it gets even more fun:

import yum
my = yum.YumBase()
my.install(name='kernel')
for pkg in my.tsInfo.getMembers():
    print pkg.po

>> kernel - 2.6.23.8-63.fc8.i686
my.resolveDeps()
for pkg in my.tsInfo.getMembers():
    print pkg.po
>> kernel - 2.6.23.8-63.fc8.i686

so my.install() is working but cli's installs are broooooooooken.

I'll be playing with this tomorrow but I have this sinking suspicion a
lot of code may end up getting a beating.

-sv







More information about the Yum-devel mailing list