setup-apkrepos sets invalid record when internet connection is missing
If setup-apkrepos (or setup-alpine) is used on a box that still have no internet connection, and the user chooses [f] as in “Detect and add fastest mirror from above list”, then /etc/apk/repositories will get a record that looks like:
This record is not valid.
Instead setup-apkrepos should randomly (or statically) chose a valid mirror when failing to automatically detect the fastest mirror.
(from redmine: issue id 1073, created on 2012-04-04, closed on 2012-05-30)
- Revision 625a07f49ca1699b6b4ad2257b7761c797b1e959 by Natanael Copa on 2012-05-27T13:33:42Z:
setup-apkrepos: do not add empty mirrors ref #1073
- Revision 9e7f0109 by Natanael Copa on 2012-05-28T09:45:18Z:
main/alpine-conf: setup-apkrepos: do not add empty mirrors ref #1073
- Revision 1e0e3d55 by Natanael Copa on 2012-05-28T09:48:19Z:
main/alpine-conf: setup-apkrepos: do not add empty mirrors fixes #1073 (cherry picked from commit 9e7f01099f33c9c2da08c24b1559767f499c0be4)