Package: netselect-apt Version: 0.3.ds1-4 Severity: important Tags: patch
The option -f for ftp does not work! *** PATCH *** --- netselect-apt.orig 2005-06-05 13:31:06.000000000 +0200 +++ netselect-apt 2005-06-05 13:49:43.000000000 +0200 @@ -42,9 +42,10 @@ run_netselect() { SEARCH="$1" + PROTO="$2" netselect -v -s 1 $(cat mirrors_full \ | perl -n -e ' - if (m{^'"$SEARCH"':.*<a href="(http://.*?)">}) { + if (m{^'"$SEARCH"':.*<a href="('"$PROTO"'://.*?)">}i) { print("$1\n"); }') \ | awk '{print $2}' @@ -129,7 +130,7 @@ fi log "Choosing a main Debian mirror using netselect." -main=$(run_netselect "Packages over $protocol") +main=$(run_netselect "Packages over $protocol" $protocol ) if [ -z "$main" ]; then netselect_error exit 2 @@ -140,7 +141,7 @@ fi log "Choosing a non-US Debian mirror using netselect." -non_us=$(run_netselect "Non-US packages over $protocol") +non_us=$(run_netselect "Non-US packages over $protocol" $protocol ) if [ -z "$non_us" ]; then netselect_error exit 2 *** PATCH DONE *** -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (900, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.11-1-686 Locale: LANG=de_CH, LC_CTYPE=de_CH (charmap=ISO-8859-1) Versions of packages netselect-apt depends on: ii netselect 0.3.ds1-4 Choose the fastest server automati ii wget 1.9.1-12 retrieves files from the web -- no debconf information
--- netselect-apt.orig 2005-06-05 13:31:06.000000000 +0200 +++ netselect-apt 2005-06-05 13:49:43.000000000 +0200 @@ -42,9 +42,10 @@ run_netselect() { SEARCH="$1" + PROTO="$2" netselect -v -s 1 $(cat mirrors_full \ | perl -n -e ' - if (m{^'"$SEARCH"':.*<a href="(http://.*?)">}) { + if (m{^'"$SEARCH"':.*<a href="('"$PROTO"'://.*?)">}i) { print("$1\n"); }') \ | awk '{print $2}' @@ -129,7 +130,7 @@ fi log "Choosing a main Debian mirror using netselect." -main=$(run_netselect "Packages over $protocol") +main=$(run_netselect "Packages over $protocol" $protocol ) if [ -z "$main" ]; then netselect_error exit 2 @@ -140,7 +141,7 @@ fi log "Choosing a non-US Debian mirror using netselect." -non_us=$(run_netselect "Non-US packages over $protocol") +non_us=$(run_netselect "Non-US packages over $protocol" $protocol ) if [ -z "$non_us" ]; then netselect_error exit 2