From: Graham Percival <graham@percival-music.ca> Date: Sat, 17 Sep 2011 18:25:03 +0000 (+0100) Subject: Build fix : destroy nice python list comprehension X-Git-Tag: release/2.15.12-1~27 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b7fc79ebc7edd841949517364485ea6043de18a3;p=lilypond.git Build fix : destroy nice python list comprehension 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 --- diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py index 106dcee657..29a90151c6 100644 --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -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 = "../"