[MacPorts] #14891: PATCH: use the fastest mirror in fetch phase

MacPorts trac at macosforge.org
Tue Apr 1 20:42:32 PDT 2008


#14891: PATCH: use the fastest mirror in fetch phase
------------------------------+---------------------------------------------
 Reporter:  jmr at macports.org  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  enhancement       |      Status:  new                                  
 Priority:  Normal            |   Milestone:  MacPorts base enhancements           
Component:  base              |     Version:  1.7.0                                
 Keywords:                    |  
------------------------------+---------------------------------------------
 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.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14891>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list