'find_fastest_mirror()' prevent setup process when repo mirror not accessible
To fix this necessarily check repository mirror availability before
process with ‘apk update …’:
+
ping -c 1 $(get_hostname_from_url $url) >/dev/null 2>&1 ||
continue
Additional verification check returned status from ‘apk update …’ for
skipping result time, when something go wrong:
—-
if ($1 < current) {
+
if ($1 < current && ‘$?’ = 0) {
(from redmine: issue id 4017, created on 2015-03-24, closed on 2015-05-14)
- Relations:
- relates #3375
- Changesets:
- Revision c113ed8e by Natanael Copa on 2015-04-07T07:04:20Z:
setup-apkrepos: add -f for just-add-fastest mirror
fixes #4017
- Revision 3f769dc9 by Natanael Copa on 2015-04-10T17:41:49Z:
setup-apkrepos: exclude faulty mirrors from detection
ref #4017
- Revision 5313dda95ee8aeb093c992c3aaa9e75e14ec12c6 by Natanael Copa on 2015-04-21T11:26:24Z:
main/alpine-mirrors: remove mirror.pw/alpine
it appears to be offline
ref #4017
- Revision 5d103d1b758e65002b9f096327dcecf7d5e40138 by Natanael Copa on 2015-04-22T07:05:33Z:
Revert "main/alpine-mirrors: add mirror.pw"
The mirror does not answer.
ref #4017
This reverts commit bd1913665a57a2157cba92c46ca5ca4686cdd6d5.
- Revision 9d4be42d by Natanael Copa on 2015-05-14T08:10:09Z:
setup-apkrepos: fix excluding faulty mirrors
This is a fix of commit 3f769dc (setup-apkrepos: exclude faulty mirrors
from detection)
ref #4017
- Revision b2944c548dfed2a611d26e4c45b5454efc413854 by Natanael Copa on 2015-05-14T08:13:59Z:
main/alpine-conf: upgrade to 3.2.1
ref #4017
- Revision c3fed183abefeca74cf122f9747ccc38c0bfe5ef by Natanael Copa on 2015-05-14T08:34:17Z:
main/apk-tools: make update return failure on mirror errors
this is needed to properly fix setup-apkrepos to not pick faulty
mirrors.
ref #4017
- Revision 3789018bc22ed340bbbe399b6379eb5d40bf66e1 by Natanael Copa on 2015-05-14T08:38:20Z:
main/alpine-conf: exclude faulty mirrors in setup-apkrepos
fixes #4017