# HG changeset patch # User Jan Nieuwenhuizen # Date 1250791417 -7200 # Node ID f322541f9c18940f6e7135d83fabf92fbb5b80bb # Parent 5be1fb4645863af3ca35a660fe03e5ac3fb1cc2b cross: move bootstrap_names initialization back. Fixes librestrict adds. diff -r 5be1fb464586 -r f322541f9c18 gub/cross.py --- a/gub/cross.py Thu Aug 20 20:00:50 2009 +0200 +++ b/gub/cross.py Thu Aug 20 20:03:37 2009 +0200 @@ -69,13 +69,14 @@ # 'tools::gcc', 'tools::make', ] -if 'stat' in misc.librestrict (): - bootstrap_names += ['tools::coreutils', 'tools::bash', 'tools::gawk', - 'tools::grep', 'tools::sed'] -if 'BOOTSTRAP' in os.environ.keys (): - bootstrap_names += ['tools::gub-utils'] def set_cross_dependencies (package_object_dict): + global bootstrap_names + if 'stat' in misc.librestrict (): + bootstrap_names += ['tools::coreutils', 'tools::bash', 'tools::gawk', + 'tools::grep', 'tools::sed'] + if 'BOOTSTRAP' in os.environ.keys (): + bootstrap_names += ['tools::gub-utils'] packs = list (package_object_dict.values ()) cross_packs = [p for p in packs if isinstance (p, AutoBuild)]