[Yum-devel] "No more mirrors to try"
Emmanuel Thomé
Emmanuel.Thome at inria.fr
Mon Nov 8 16:23:09 UTC 2004
Hi all.
The attached patch reinstates the ``no more mirrors to try'' error
message when the mirror list is exhausted (current version has it only
when the mirror list is empty).
E.
-------------- next part --------------
--- /usr/lib/python2.3/site-packages/urlgrabber/mirror.py 2004-10-31 05:46:58.000000000 +0100
+++ /tmp/new 2004-11-08 17:18:57.092534852 +0100
@@ -287,6 +287,8 @@
# even without failures.
if not gr.mirrors:
raise URLGrabError(256, _('No more mirrors to try.'))
+ if gr._next >= len(gr.mirrors):
+ raise URLGrabError(256, _('No more mirrors to try.'))
return gr.mirrors[gr._next]
def _failure(self, gr, cb_obj):
More information about the Yum-devel
mailing list