Description of problem:
If a mirrorlist fails to download and it's the only mirrorlist for that repo
(such as the default .repos from fedora-release), yum will fail with the
seemingly incorrect "Cannot find a valid baseurl for repo: <repo>". Even with
-d9 -e9, there is no indication of the mirrorlist download failing.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
rm -f /etc/resolv.conf
iptables -I INPUT -j REJECT
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core
At the very least a warning with the URLGrabError exception for diagnostics.
The attached patch doesn't do the Right Thing(tm), but I couldn't figure out how
to use a Logger from getMirrorList.
Created attachment 133298 [details]
Patch showing where the problem is
Fixed up in cvs - I added something similar to your patch.