Commit b21500f3 authored by Natanael Copa's avatar Natanael Copa

setup-apkrepos: use wget --spider

the wget -s option was removed in busybox 1.26

ref #6683
parent f2d14370
...@@ -51,7 +51,7 @@ find_fastest_mirror() { ...@@ -51,7 +51,7 @@ find_fastest_mirror() {
for url in $MIRRORS; do for url in $MIRRORS; do
# warm up the dns cache # warm up the dns cache
nslookup $(get_hostname_from_url $url) >/dev/null 2>&1 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) ${url%/}/edge/main/$arch/APKINDEX.tar.gz)
if [ -n "$time" ]; then if [ -n "$time" ]; then
echo "$time $url" echo "$time $url"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment