Fix the redirect script given the new way USA mirrors are listed.
authorDeryck Hodge <deryck@samba.org>
Thu, 7 Jul 2005 19:34:09 +0000 (19:34 +0000)
committerDeryck Hodge <deryck@samba.org>
Thu, 7 Jul 2005 19:34:09 +0000 (19:34 +0000)
deryck

git-svn-id: file:///home/svn/samba-web/trunk@739 44aeb9d7-1cd8-0310-b257-a505e0beeac2

scripts/js_redirect.py

index 273e4c34b1458001fe1954c322e3800b9e52dedd..939a3e168817f9fa2d79476c33d9db80f9203f34 100755 (executable)
@@ -21,8 +21,8 @@ for line in hosts:
         # Make list of mirror_name/url pairs to preserve web_hosts sort. 
         mirrors.append((parts.group(2), parts.group(1)))
         # While we're here, get the US mirrors on their own
-        if re.match('<li><a href="(.*)samba.html">USA</a>', line):
-            us_mirrors.append(re.match('<li><a href="(.*)samba.html">USA</a>', line).group(1))
+        if re.match('<li><a href="(.*)samba.html">USA (.*)</a>', line):
+            us_mirrors.append(re.match('<li><a href="(.*)samba.html">USA (.*)</a>', line).group(1))
 
 # Write all mirrors to drop-down menu
 menu = open('menu_options.html', 'w')