[yum-cvs] yum/rpmUtils __init__.py,1.21,1.21.2.1

Gijs Hollestelle gijs at login.linux.duke.edu
Mon Apr 25 13:10:07 UTC 2005


Update of /home/groups/yum/cvs/yum/rpmUtils
In directory login:/tmp/cvs-serv5201

Modified Files:
      Tag: yum-2_2_X
	__init__.py 
Log Message:
Backported fix to allow unversioned provides to fulfill versioned requires
from HEAD.



Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/__init__.py,v
retrieving revision 1.21
retrieving revision 1.21.2.1
diff -u -r1.21 -r1.21.2.1
--- __init__.py	15 Jan 2005 05:22:43 -0000	1.21
+++ __init__.py	25 Apr 2005 13:10:04 -0000	1.21.2.1
@@ -277,7 +277,10 @@
                     match_r = pkg_r
                     
                 matchtuple = (match_n, match_a, match_e, match_v, match_r)
-                if miscutils.rangeCheck(provtuple, matchtuple):
+                # This provides matches if the version is in the requested
+                # range or the providing package provides the resource
+                # without a version (meaning that it matches all EVR) 
+                if miscutils.rangeCheck(provtuple, matchtuple) or (match_v == None):
                     matches.append(pkgtuple)
         del matchingHdrs
         return miscutils.unique(matches)




More information about the Yum-cvs-commits mailing list