diff options
Diffstat (limited to 'main/alpine-conf/0001-setup-apkrepos-fix-speed-test-of-mirrors.patch')
-rw-r--r-- | main/alpine-conf/0001-setup-apkrepos-fix-speed-test-of-mirrors.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-setup-apkrepos-fix-speed-test-of-mirrors.patch b/main/alpine-conf/0001-setup-apkrepos-fix-speed-test-of-mirrors.patch new file mode 100644 index 0000000000..3ca7be609e --- /dev/null +++ b/main/alpine-conf/0001-setup-apkrepos-fix-speed-test-of-mirrors.patch @@ -0,0 +1,28 @@ +From 2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Tue, 16 Jun 2015 10:31:14 +0200 +Subject: [PATCH] setup-apkrepos: fix speed test of mirrors + +Some mirrors error on double / in path. + +ref #4365 +--- + setup-apkrepos.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup-apkrepos.in b/setup-apkrepos.in +index 1956b19..1bbccca 100644 +--- a/setup-apkrepos.in ++++ b/setup-apkrepos.in +@@ -48,7 +48,7 @@ find_fastest_mirror() { + local url= + for url in $MIRRORS; do + local time=$(time_cmd apk update --quiet $apk_root_opt \ +- --repository $url/edge/main \ ++ --repository ${url%/}/edge/main \ + --repositories-file /dev/null) + if [ -n "$time" ]; then + echo "$time $url" +-- +2.4.5 + |