commit 755608effa7a79cb40ed4e74dcbc66e680074567
Author: hiro <hiro(a)torproject.org>
Date: Sat Aug 31 15:12:58 2019 +0200
Update script add_links_to_db
---
scripts/add_links_to_db | 46 ++++++++++++++++++++++++++++++++++++++++------
1 file changed, 40 insertions(+), 6 deletions(-)
diff --git a/scripts/add_links_to_db b/scripts/add_links_to_db
index f303691..896e2c1 100755
--- a/scripts/add_links_to_db
+++ b/scripts/add_links_to_db
@@ -75,20 +75,54 @@ def main():
prefixes = {
"osx": "TorBrowser-",
"windows": "torbrowser-install-",
- "linux": "tor-browser-linux64-"
+ "linux64": "tor-browser-linux64-",
+ "linux32": "tor-browser-linux32-"
}
- versions = {"windows": version, 'linux': version, 'osx': version}
+ versions = {"windows": version, 'linux32': version, 'linux64': version, 'osx': version}
suffixes = {
"osx": "-osx64_en-US.dmg",
"windows": "_en-US.exe",
- "linux": "_en-US.tar.xz"
+ "linux32": "_en-US.tar.xz",
+ "linux64": "_en-US.tar.xz"
}
- keys = ['osx', 'windows', 'linux']
-
- languages = ['en-US', 'es-ES', 'pt-BR']
+ keys = ['osx', 'windows', 'linux32', 'linux64']
+
+ languages = [
+ 'en-US',
+ 'es-ES',
+ 'pt-BR',
+ 'ar',
+ 'ca',
+ 'cs',
+ 'da',
+ 'de',
+ 'el',
+ 'es-AR',
+ 'fa',
+ 'fr',
+ 'ga-IE',
+ 'he',
+ 'hu',
+ 'id',
+ 'is',
+ 'it',
+ 'ja',
+ 'ka',
+ 'ko',
+ 'nb-NO',
+ 'nl',
+ 'pl',
+ 'pt-BR',
+ 'ru',
+ 'sv-SE',
+ 'tr',
+ 'vi',
+ 'zh-CN',
+ 'zh-TW'
+ ]
releases = {k: "".join(dic.get(k, version) for dic in (prefixes, versions, suffixes)) for k in keys}