aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-01-24 16:20:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-01-24 16:21:30 +0000
commitec5b1d80a083abef5665b736e229f3109321c175 (patch)
tree6420e8b57db5195830e8d8774ca0b768abe87599 /main/alpine-conf/0001-setup-apkrepos-use-wget-spider.patch
parentaac73b34e4a0163a4870b41fc59be2fdb87e1057 (diff)
downloadaports-ec5b1d80a083abef5665b736e229f3109321c175.tar.bz2
aports-ec5b1d80a083abef5665b736e229f3109321c175.tar.xz
main/alpine-conf: fix for busybox 1.26 and newer
wget -s was removed in busybox-1.26, so use wget --spider instead. fixes #6683
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.patch29
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
+