On 2010/05/17 01:07, Edd Barrett wrote: > On Sun, May 16, 2010 at 10:14:07PM +0200, Nicolas P. M. Legrand wrote: > > hello, > > > > $ cat snapdl/pkg/DESCR > > > > snapdl helps you to find mirrors with snapshots of -current synced with > > the main mirror http://ftp.OpenBSD.org and to download the sets from the > > fastest one. > > > > it's a small script I was missing while downloading regularly > > snapshots, I find it very useful I wonder if anyone else is > > interested? > > I like it! I have a similar script, but I like yours better. > > Lets get the port up to scratch for importing. The diff below shows some stuff > you missed. Can anyone see anything else? If not, can I get an OK? > > PS. For the next version, ftp support too? > > PS(2): At the moment you are scraping the html. Perhaps if you were to > ask the relevent parties, you might be able to have the mirror list in a > better format?
mirrors.dat It seriously needs some caching. Checking nearly 60 mirrors and, if ftp is added, another 80 on top, most of which are in totally the wrong part of the world for you, every time you update, is both slow and not very nice to the mirrors.
