From 373f22648f3013a7b7bc1e601faf2878c03ce42f Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Wed, 23 Aug 2017 23:56:40 -0700 Subject: Skip ftp:// URLs, wget cannot verify them Signed-off-by: Alexey Neyman --- maintainer/test-packages.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'maintainer') diff --git a/maintainer/test-packages.sh b/maintainer/test-packages.sh index 7a19651d..26caaf8e 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}]}'" -- cgit v1.2.3