[yum-cvs] yum/yum __init__.py,1.259,1.259.2.1
Jeremy Katz
katzj at linux.duke.edu
Wed Oct 11 02:33:30 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv16906/yum
Modified Files:
Tag: yum-3_0_X
__init__.py
Log Message:
raise the right error... this ended up manifesting itself by raising the last
error (which had been passed on) instead of the intended and an entirely
non-obvious traceback. moral of the story: always raise a specific exception
(rh#210135)
Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.259
retrieving revision 1.259.2.1
diff -u -r1.259 -r1.259.2.1
--- __init__.py 5 Oct 2006 01:58:32 -0000 1.259
+++ __init__.py 11 Oct 2006 02:33:28 -0000 1.259.2.1
@@ -602,7 +602,7 @@
if not po.verifyLocalPkg():
if raiseError:
- raise
+ raise URLGrabError(-1, 'Package does not match intended download')
else:
return False
More information about the Yum-cvs-commits
mailing list