[ATrpms-devel] yum kmdl plugin

Axel Thimm Axel.Thimm at ATrpms.net
Sat Jul 29 17:42:08 CEST 2006


On Sat, Jul 29, 2006 at 05:33:13PM +0200, Tako Schotanus wrote:
> With all the talk about this yum-plugin I was wondering Axel: is yum 
> again a viable and trustworthy option for keeping your system up-to-date?
> 
> I'm asking because for a long time you seemed to consider it one of the 
> worst. So how does it compare nowadays to apt and smart?

Hm, let me get my book on "diplomatic answers":

yum is used by a lot of people that need kmdl support. Whoever hasn't
yet heard and/or tested smart (or apt) will probably not be able to
understand why kmdls aren't installed automatically. Instead of
reiterating the arguments and bash 9-liners all over again, I
preferred to fix this issue.

It also serves as a demostration to the fedora packaging group to
consider accepting kmdl packaging methods. In fact that was what gave
me the final push.

I just finished upgrading an FC4 system to FC5 with apt.

Now, read through the lines :=)

> Axel Thimm wrote:
> > On Sat, Jul 29, 2006 at 11:10:25AM +0200, Axel Thimm wrote:
> >   
> >> On Sat, Jul 29, 2006 at 12:21:22AM -0300, Paulo Cavalcanti wrote:
> >>     
> >>> Hi, Axel
> >>>
> >>> I used the first "update" with yum today
> >>> and your plugin tried to install the modules
> >>>
> >>> nvidia, lirc, and sk98lin.
> >>>
> >>> But they are already installed, as you can see below.
> >>>       
> >> OK, I'll look into it, thanks!
> >>     
> >
> > Can you test the following patch?
> >
> > --- /usr/lib/yum-plugins/kmdl.py~       2006-07-27 00:44:49.000000000 +0200
> > +++ /usr/lib/yum-plugins/kmdl.py        2006-07-29 15:01:21.000000000 +0200
> > @@ -79,7 +79,7 @@
> >                  if pkg.name == pkgname and pkg.arch == kernel[1]:
> >                      if not pkgfound or compareEVR(pkg.returnEVR(), pkgfound.returnEVR()) == 1:
> >                          pkgfound=pkg
> > -            if pkgfound:
> > +            if pkgfound and not conduit.getRpmDB().installed(pkgfound.name, pkgfound.arch, pkgfound.epoch, pkgfound.version, pkgfound.release):
> >                  print "Installing " + pkgfound.name
> >                  (n, a, e, v, r) = pkgfound.pkgtup
> >                  conduit.info(2, '---> Package %s.%s %s:%s-%s set to be %s' % (n, a, e, v, r,

-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20060729/1f30e048/attachment.bin 


More information about the atrpms-devel mailing list