Ticket #14891 (closed enhancement: fixed)
PATCH: use the fastest mirror in fetch phase
|Reported by:||jmr@…||Owned by:||macports-tickets@…|
Here's a patch which makes the fetch phase ping each of the candidate download sites, and then sort the list in ascending order of ping time. This is my first attempt at writing Tcl, so no doubt it could be done better, and I welcome any advice.
Some issues that need to be thought about:
- We probably want to special-case some mirrors. We always want to try MacPorts svn last, and the primary site for each mirror group should be second-last.
- Caching. Is it worth the effort? Maybe pinging every mirror every time is fine. When do we refresh cache entries?
- User hints/overrides. If the user tells us that certain mirrors are good, we should always try them first when eligible.