# HG changeset patch # User Jan Nieuwenhuizen # Date 1346155840 -7200 # Node ID bd0d8fb7845d6e180bdce0b287841de25a7c4ba8 # Parent f4ace7b10c94adfb5170f9e398645157d4e0f597 Remove python-2.5'ism. Fixes running GUB using python-2.4 from tools. diff -r f4ace7b10c94 -r bd0d8fb7845d gub/tools.py --- a/gub/tools.py Tue Aug 28 09:48:59 2012 +0200 +++ b/gub/tools.py Tue Aug 28 14:10:40 2012 +0200 @@ -46,22 +46,23 @@ # on linux-64, build linux-x86::guile with tools32::guile if (package.settings.target_bits == '32' and package.settings.build_bits == '64'): - package.dependencies = [name.replace ('tools::', 'tools32::') - if (misc.strip_platform (name) in libs_archmatch - and 'system::' not in name - and ('cross/' not in name - or 'runtime' in name)) else name + package.dependencies = [(misc.strip_platform (name) in libs_archmatch + and 'system::' not in name + and ('cross/' not in name + or 'runtime' in name)) + and name.replace ('tools::', 'tools32::') or name for name in package.dependencies] # only keep tools32:: for libraries linked against, # do not build tools32::autotools etc if (package.settings.target_bits == '32' and package.settings.build_bits == '64'): - package.dependencies = ['tools::' + misc.strip_platform (name) - if (misc.strip_platform (name) not in libs_archmatch - and misc.strip_name (name, package.platform ()) == 'tools32' - and 'system::' not in name - and ('cross/' not in name - or 'runtime' in name)) else name + package.dependencies = [(misc.strip_platform (name) not in libs_archmatch + and misc.strip_name (name, package.platform ()) == 'tools32' + and 'system::' not in name + and ('cross/' not in name + or 'runtime' in name)) + and 'tools::' + misc.strip_platform (name) + or name for name in package.dependencies] return package.dependencies package.get_build_dependencies \