From b7fc79ebc7edd841949517364485ea6043de18a3 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 17 Sep 2011 19:25:03 +0100 Subject: [PATCH] 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 --- scripts/build/create-weblinks-itexi.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 = "../" -- 2.39.5