svn commit: samba-web r1070 - in trunk/scripts: .

deryck at samba.org deryck at samba.org
Mon Jan 8 16:58:48 GMT 2007


Author: deryck
Date: 2007-01-08 16:58:47 +0000 (Mon, 08 Jan 2007)
New Revision: 1070

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-web&rev=1070

Log:
Drop us2 from the js redirect script.

deryck

Modified:
   trunk/scripts/js_redirect.py


Changeset:
Modified: trunk/scripts/js_redirect.py
===================================================================
--- trunk/scripts/js_redirect.py	2006-12-26 16:18:52 UTC (rev 1069)
+++ trunk/scripts/js_redirect.py	2007-01-08 16:58:47 UTC (rev 1070)
@@ -21,7 +21,7 @@
         # 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):
+        if re.match('<li><a href="(.*)samba.html">USA (.*)</a>', line) and not line.find('us2') > -1:
             us_mirrors.append(re.match('<li><a href="(.*)samba.html">USA (.*)</a>', line).group(1))
 
 # Write all mirrors to drop-down menu



More information about the samba-cvs mailing list