Don_crissti over at linuxgator.org just gave me some bash code to work with for testing repo download speeds. When I get back from vacation I will update synaptic-repair again so that it gives the user an option to automatically pick the fastest repo for their location.
With Don crissti's help, I was able to update synaptic-repair
so that in the process of rebuilding the source.list file, it will now also accept a user determined acceptable age for a repo sync and then perform the speed test against all repos that meet the age criteria. The script then presents an ordered list (slowest to fastest) of up to date repos, the user then selects the repo they would like to use, and synaptic-repair then builds a new sources.list with the user selected repo set as default and all other up to date repo's disabled (..out-of-date and non-responding repos are removed from the sources.list file).
Also by user request, PASS and local repo's are preserved (but temporarily disabled), and the user is also now given the option of wether or not to rebuild the RPM database and clean the RPM cache (these were forced previously). The script finishes up by automatically updating the package lists (apt-get update), fixing any broken packages, running a full update, and then giving you the option to launch synaptic.
Anybody wishing to test the updated synaptic-repair script with integrated speed test can find it here:http://linuxgator.org/forums/viewtopic.php?f=15&t=1719&p=12016#p12016
Don's new Perl script is also in that thread.
At some point I will look into creating a basic GUI version (using bash & zenity) for just the repo test / sources.list update, but until then..