]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build fix : destroy nice python list comprehension
authorGraham Percival <graham@percival-music.ca>
Sat, 17 Sep 2011 18:25:03 +0000 (19:25 +0100)
committerGraham Percival <graham@percival-music.ca>
Sat, 17 Sep 2011 18:25:03 +0000 (19:25 +0100)
GUB only has python 2.4, which means that all our scripts must
only use python 2.4, which means that we can't do useful list
comprehensions like
    langs = [i.code if i.code != 'en' else '' for i in
langdefs.WEB_LANGUAGES]

http://code.google.com/p/lilypond/issues/detail?id=1895

scripts/build/create-weblinks-itexi.py

index 106dcee6579492c0d1776000769714d6fdb607ac..29a90151c63d77df2c7bc58e664a5cbba6e0433a 100644 (file)
@@ -13,7 +13,15 @@ import glob
 ### http://code.google.com/p/lilypond/issues/detail?id=1050
 
 import langdefs
-langs = [i.code if i.code != 'en' else '' for i in langdefs.WEB_LANGUAGES]
+# GUB only has python 2.4 !!!
+# langs = [i.code if i.code != 'en' else '' for i in langdefs.WEB_LANGUAGES]
+langs = []
+for lang in langdefs.WEB_LANGUAGES:
+    if lang.code == 'en':
+        langs.append('')
+    else:
+        langs.append(lang.code)
+
 
 # these links are relative from /website/ on lilypond.org
 depth = "../"