On Sun, Dec 27, 2015 at 12:05:43PM GMT, Stuart Henderson wrote: > This would work for releases, though unless pkg_add was changed to > cache the redirect it would slow things down compared to fetching > directly from the mirror. > > For snapshots, caching the redirect would be essential, otherwise it > could switch mirror mid-update, and it is common that mirrors are not > all in-sync. > > Caching the redirect is a bigger change than it seems because pkg_add > doesn't have its own network code but defers to $FETCH_CMD which could > be one of a number of programs. > > (yes this has been thought about already :) > > I think the best that can be done relatively easily would be to have > pkg_add fetch ftplist.cgi and pick the first result as a default if > neither pkg.conf nor PKG_PATH are set.
Thanks for the info, Stuart - very informative! Regards, Raf P.S. Even though I had used a real-life example, the email was tongue-in-cheek :^)