[yum-cvs] yum/yum __init__.py,1.314,1.315

Seth Vidal skvidal at linux.duke.edu
Tue Apr 3 19:53:27 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv25057

Modified Files:
	__init__.py 
Log Message:
make 'search' case insensitive



Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.314
retrieving revision 1.315
diff -u -r1.314 -r1.315
--- __init__.py	3 Apr 2007 05:16:51 -0000	1.314
+++ __init__.py	3 Apr 2007 19:53:25 -0000	1.315
@@ -1196,7 +1196,7 @@
                 tmpvalues = []
                 for field in fields:
                     value = getattr(po, field)
-                    if value and value.find(s) != -1:
+                    if value and value.lower().find(s.lower()) != -1:
                         tmpvalues.append(value)
 
                 if len(tmpvalues) > 0:
@@ -1206,7 +1206,7 @@
                 tmpvalues = []
                 for field in fields:
                     value = getattr(po, field)
-                    if value and value.find(s) != -1:
+                    if value and value.lower().find(s.lower()) != -1:
                         tmpvalues.append(value)
 
                 if len(tmpvalues) > 0:




More information about the Yum-cvs-commits mailing list