[yum-cvs] yum/rpmUtils __init__.py,1.21.2.1,1.21.2.2
Seth Vidal
skvidal at login.linux.duke.edu
Mon Jun 20 00:26:43 UTC 2005
Update of /home/groups/yum/cvs/yum/rpmUtils
In directory login:/tmp/cvs-serv26086
Modified Files:
Tag: yum-2_2_X
__init__.py
Log Message:
- fix header-by-index check in rpmUtils
Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/__init__.py,v
retrieving revision 1.21.2.1
retrieving revision 1.21.2.2
diff -u -r1.21.2.1 -r1.21.2.2
--- __init__.py 25 Apr 2005 13:10:04 -0000 1.21.2.1
+++ __init__.py 20 Jun 2005 00:26:41 -0000 1.21.2.2
@@ -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