--- mirrorselect.orig 2003-10-01 16:14:28.000000000 -0400 +++ mirrorselect 2003-10-01 17:02:31.000000000 -0400 @@ -163,7 +163,7 @@ local PERCENT if [ -n "${RSYNC}" ] ; then - echo "Currently RSYNC in Automatic Mode is not supported." >&2 + echo "Currently deep testing for RSYNC Automatic Mode is not supported." >&2 exit 1 else CHECKLIST="$(echo $MIRROR_LIST | sed -e 's:http\::\n&:g' -e 's:ftp\::\n&:g' | cut -f1 -d">")" @@ -197,8 +197,15 @@ local CHECK_TMP if [ -n "${RSYNC}" ] ; then - echo "Currently RSYNC in Automatic Mode is not supported." >&2 - exit 1 + CHECKLIST="$(echo $RSYNC_LIST | sed -e 's/\([^[:space:]]*\)([^)]*)/rsync.\1.gentoo.org/g')" + echo "Running netselect to determine mirrors. This may take a moment..." >&2 + + CHOSEN=$(netselect -s${SERVERS} ${CHECKLIST} | awk -F" " '{ print $2 }') + + for i in ${CHOSEN} + do + MIRRORS="${MIRRORS} rsync://${i}/gentoo-portage" + done else CHECKLIST="$(echo $MIRROR_LIST | sed -e 's:http\::\n&:g' -e 's:ftp\::\n&:g' | cut -f1 -d">")" [ -n "${CHECK_VHOSTS}" ] && save_vhosts