aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch
blob: 0d08d8f4ef969fb961d0a4860d4cf877c5a31a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From b21500f3de545fe42832ec5c7fa121f5051594fb Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 24 Jan 2017 16:16:00 +0000
Subject: [PATCH] setup-apkrepos: use wget --spider

the wget -s option was removed in busybox 1.26
https://git.busybox.net/busybox/commit/?id=2972e2c4acb9c46a8cc05c857acac2b3d439bf69

ref #6683
---
 setup-apkrepos.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index 4565852..05ef08e 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -51,7 +51,7 @@ find_fastest_mirror() {
 	for url in $MIRRORS; do
 		# warm up the dns cache
 		nslookup $(get_hostname_from_url $url) >/dev/null 2>&1
-		local time=$(time_cmd wget -q -s -T 5 \
+		local time=$(time_cmd wget --spider -q -T 5 \
 			${url%/}/edge/main/$arch/APKINDEX.tar.gz)
 		if [ -n "$time" ]; then
 			echo "$time $url"
-- 
2.11.0