[ATrpms-devel] yum kmdl plugin (was: atrpms kernel modules)
Axel Thimm
Axel.Thimm at ATrpms.net
Sat Jul 29 15:03:26 CEST 2006
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/ec7b8b75/attachment.bin
More information about the atrpms-devel
mailing list