www-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www/server/source/sitemap-generator sitemap-gen...


From: Pavel Kharitonov
Subject: www/server/source/sitemap-generator sitemap-gen...
Date: Mon, 02 Sep 2013 12:38:58 +0000

CVSROOT:        /web/www
Module name:    www
Changes by:     Pavel Kharitonov <ineiev>       13/09/02 12:38:58

Modified files:
        server/source/sitemap-generator: sitemap-generator.py 

Log message:
        Avoid duplicate sitemap_linguas.

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/sitemap-generator/sitemap-generator.py?cvsroot=www&r1=1.8&r2=1.9

Patches:
Index: sitemap-generator.py
===================================================================
RCS file: /web/www/www/server/source/sitemap-generator/sitemap-generator.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- sitemap-generator.py        26 May 2013 06:08:49 -0000      1.8
+++ sitemap-generator.py        2 Sep 2013 12:38:50 -0000       1.9
@@ -104,7 +104,7 @@
        linguas = []
        for f in os.listdir(os.path.join(TOP_DIRECTORY, SITEMAP_DIR)):
                match = re.search(SITEMAP_REGEXP, f)
-               if match:
+               if match and not (match.group('langcode') in linguas):
                        linguas.append(match.group('langcode'))
        line = 'Found sitemap translations:'
        for l in sorted(linguas):



reply via email to

[Prev in Thread] Current Thread [Next in Thread]