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): yum-2.6.1-0.fc5 yum-2.9.3-2 How reproducible: Always Steps to Reproduce: rm -f /etc/resolv.conf iptables -I INPUT -j REJECT etc. Actual results: Cannot find a valid baseurl for repo: core Error: Cannot find a valid baseurl for repo: core Expected results: At the very least a warning with the URLGrabError exception for diagnostics. Additional info: 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. thanks!