[yum-cvs] yum/rpmUtils __init__.py,1.22,1.23

Seth Vidal skvidal at login.linux.duke.edu
Sun Jun 19 06:32:20 UTC 2005


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

Modified Files:
	__init__.py 
Log Message:

- make the use-indexes-to-retrieve-hdrs mechanism work.
- this makes a big speed up for yum remove calls when using rpm >= 4.4.1



Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/__init__.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- __init__.py	25 Apr 2005 09:39:14 -0000	1.22
+++ __init__.py	19 Jun 2005 06:32:17 -0000	1.23
@@ -58,13 +58,15 @@
         
     def addDB(self, ts):
         self.ts = ts
-        self.match_on_index = 0
+        self.match_on_index = 1
         
         try:
             mi = self.ts.dbMatch(0, 1)
             hdr = mi.next()
-        except (TypeError, StopIteration), e:
+        except TypeError, e:
             self.match_on_index = 0
+        except StopIteration, e:
+            pass
         else:
             self.match_on_index = 1
             




More information about the Yum-cvs-commits mailing list