[yum-cvs] yum-utils/plugins/kernel-module kernel-module.py,1.2,1.3

Panu Matilainen pmatilai at linux.duke.edu
Tue Jan 10 16:02:30 UTC 2006


Update of /home/groups/yum/cvs/yum-utils/plugins/kernel-module
In directory login1.linux.duke.edu:/tmp/cvs-serv8330

Modified Files:
	kernel-module.py 
Log Message:
- only look at kernel modules of same arch as the new kernel to be installed
  (patch by Tim Lauridsen)


Index: kernel-module.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/kernel-module/kernel-module.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- kernel-module.py	4 Jan 2006 15:51:15 -0000	1.2
+++ kernel-module.py	10 Jan 2006 16:02:28 -0000	1.3
@@ -40,7 +40,8 @@
         for kern in kernels:
             for prov in provides:
                 if pkg.name == "%s-%s" % (prov, kunamer(kern)):
-                    matches.append(pkg)
+                    if pkg.arch == kern.arch:
+                        matches.append(pkg)
     return unique(matches)
 
 def preresolve_hook(conduit):




More information about the Yum-cvs-commits mailing list