[mirrorbrain-commits] [mod_stats] r29 - /trunk/tools/ooo.conf

From: <poeml_at_mirrorbrain.org>
Date: Wed, 25 Nov 2009 17:11:13 -0000
Author: poeml
Date: Wed Nov 25 18:11:12 2009
New Revision: 29

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=29&view=rev
Log:
- parse files starting with /localized/...
- apply prefilter to deal with little inconsistencies in language code
  being lower/upper case

Modified:
    trunk/tools/ooo.conf

Modified: trunk/tools/ooo.conf
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/ooo.conf?rev=29&r1=28&r2=29&view=diff
==============================================================================
--- trunk/tools/ooo.conf (original)
+++ trunk/tools/ooo.conf Wed Nov 25 18:11:12 2009
@@ -26,6 +26,13 @@
 # strip appended .metalink suffix
 StatsPrefilter "\.metalink$" ""
 
+# language codes are sometimes lower case, sometimes upper
+# localized/en-GB/3.1.1/OOo_3.1.1_Win32Intel_langpack_en-GB.exe
+# localized/zh-cn/3.1.0/OOo_3.1.0_Solarisx86_install_zh-cn.tar.gz
+# localized/zh-cn/3.1.1/OOo_3.1.1_LinuxIntel_install_zh-CN.tar.gz
+StatsPrefilter "zh-cn" "zh-CN"
+StatsPrefilter "zh-tw" "zh-TW"
+
 
 # best reference about Python regexp: http://www.amk.ca/python/howto/regex/regex.html
 #
@@ -38,20 +45,18 @@
 # stable/3.1.1/OOo_3.1.1_Win32Intel_install_en-US.exe
 # stable/3.1.1/OOo_3.1.1_MacOSXIntel_install_en-US.dmg
 # stable/3.1.1/OOo_3.1.1_Win32Intel_install_wJRE_en-US.exe
-# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_Win32Intel_langpack_en-ZA.exe      -
-# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_Win32Intel_langpack_en-ZA.exe      -
-# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_Win32Intel_langpack_en-ZA.exe      -
+# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_Win32Intel_langpack_en-ZA.exe
+# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_Win32Intel_langpack_en-ZA.exe
+# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_Win32Intel_langpack_en-ZA.exe
 # extended/3.1.1rc2/OOo_3.1.1rc2_20090820_LinuxIntel_langpack_brx_deb.tar.gz
 # extended/developer/DEV300_m65/OOo-Dev-SDK_DEV300_m65_Win32Intel_install_en-US.exe
-#StatsCount "^(?:stable|extended)/(?:developer/)?([^/]+)/(OOo|OOo-SDK|OOo-Dev|OOo-Dev-SDK)_(?P<realversion>[^_]+(?:_[0-9]+)?)_(.+)_(?P<lang>([a-zA-Z]{2}(-[a-zA-Z]{2})?|binfilter|core|l10n|extensions|system|testautomation|brx|dgo|kok|mai|mni|sat))(_deb|_rpm)?\.(exe|dmg|sh|tar\.gz|tar\.bz2)$"  "prod: \2  os: \4  version: \1  realversion: \g<realversion>  lang: \g<lang>"
 StatsCount "^(?:stable|extended)/(?:developer/)?([^/]+)/(OOo|OOo-SDK|OOo-Dev|OOo-Dev-SDK)_\1_(.+)_(?P<lang>([a-zA-Z]{2}(-[a-zA-Z]{2})?|binfilter|core|l10n|extensions|system|testautomation|brx|dgo|kok|mai|mni|sat))(_deb|_rpm)?\.(exe|dmg|sh|tar\.gz|tar\.bz2)$"  "prod: \2  os: \3  version: \1  lang: \g<lang>"
 
 
-# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_LinuxX86-64_langpack_zh-CN.tar.gz
-# extended/3.1.1rc2/OOo_3.1.1rc2_20090820_LinuxX86-64_langpack_zh-CN_deb.tar.gz
+# localized/vi/3.1.1/OOo_3.1.1_Win32Intel_langpack_vi.exe
+# localized/zh-cn/3.1.0/OOo_3.1.0_Solarisx86_install_zh-cn.tar.gz
+StatsCount "^localized/([^/]+)/([^/]+)/OOo_\2_(.+)_\1(_deb|_rpm)?\.(exe|dmg|sh|tar\.gz|tar\.bz2)$"  "prod: \2  os: \3  version: \2  lang: \1"
 
-# localized/ru/2.4.3/OOo_2.4.3_Win32Intel_install_ru.exe      -
-# localized/es/2.4.3/OOo_2.4.3_Win32Intel_install_es.exe      -
 
 
 # filtering to be applied after parsing (but before counting)




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Nov 25 2009 - 17:11:16 GMT

This archive was generated by hypermail 2.2.0 : Wed Nov 25 2009 - 17:45:18 GMT