summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-24 06:56:40 (GMT)
committerAlexey Neyman <stilor@att.net>2017-08-24 06:56:40 (GMT)
commit373f22648f3013a7b7bc1e601faf2878c03ce42f (patch)
tree00ce1f753125223b6fc2b2f987a1f26fae17b738 /maintainer
parentbc30eb4818c2f726d3572d086713c943f7880bc1 (diff)
Skip ftp:// URLs, wget cannot verify them
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rwxr-xr-xmaintainer/test-packages.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/maintainer/test-packages.sh b/maintainer/test-packages.sh
index 7a19651..26caaf8 100755
--- a/maintainer/test-packages.sh
+++ b/maintainer/test-packages.sh
@@ -92,7 +92,11 @@ check_pkg_urls()
CT_DoStep EXTRA "Looking for ${archive_filename}${e}"
for m in ${mirrors}; do
url="${m}/${archive_filename}${e}"
- mh="${m#*://}"
+ case "${url}" in
+ # WGET always returns success for FTP URLs in spider mode :(
+ ftp://*) CT_DoLog DEBUG "Skipping '${url}': FTP not supported"; continue;;
+ esac
+ mh="${url#*://}"
mh="${mh%%[:/]*}"
if [ -n "${mirror_status[${mh}]}" ]; then
CT_DoLog DEBUG "Skipping '${url}': already found on this host at '${mirror_status[${mh}]}'"