aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2010-04-02 16:44:14 +0200
committerChristian Ruppert <idl0r@gentoo.org>2010-04-02 16:44:14 +0200
commitdaad8a5e5ea2dac503513f6ab114184dd427db01 (patch)
tree7442224014da581af818c5da1b09ac047282e055
parentRemove obsolete mirrorparser.py. (diff)
downloadmirrorselect-daad8a5e5ea2dac503513f6ab114184dd427db01.tar.gz
mirrorselect-daad8a5e5ea2dac503513f6ab114184dd427db01.tar.bz2
mirrorselect-daad8a5e5ea2dac503513f6ab114184dd427db01.zip
Fix rsync mirror selectection
Append /gentoo-portage to the rsync mirror url if necessary, bug 312753, thanks to Donald Wallace Rouse II <gentoo-user-0d329vjsd8@dwr2.org>
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index 367e8d4..dd3386e 100755
--- a/main.py
+++ b/main.py
@@ -608,6 +608,8 @@ class Interactive(object):
for (url, args) in sorted(hosts, key = lambda x: (x[1]['country'].lower(), x[1]['name'].lower()) ):
marker = ""
+ if options.rsync and not url.endswith("/gentoo-portage"):
+ url+="/gentoo-portage"
if (not options.ipv6 and not options.ipv4) and args['ipv6'] == 'y':
marker = "* "
if options.ipv6 and ( args['ipv6'] == 'n' ): continue