Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 18588 Details for
Bug 16315
mirrorselect should use netselect to suggest the fastest servers
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Automatic mode for rsync mirror selection
mirror (text/plain), 1.05 KB, created by
David Held
on 2003-10-01 18:41:10 UTC
(
hide
)
Description:
Automatic mode for rsync mirror selection
Filename:
MIME Type:
Creator:
David Held
Created:
2003-10-01 18:41:10 UTC
Size:
1.05 KB
patch
obsolete
>--- 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16315
:
8793
| 18588