diff options
Diffstat (limited to 'main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch')
-rw-r--r-- | main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch b/main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch new file mode 100644 index 0000000000..0d08d8f4ef --- /dev/null +++ b/main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch @@ -0,0 +1,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 + |