Mercurial > gub
changeset 5499:f322541f9c18
cross: move bootstrap_names initialization back. Fixes librestrict adds.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Thu, 20 Aug 2009 20:03:37 +0200 |
parents | 5be1fb464586 |
children | f9a5bc9a4a24 |
files | gub/cross.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)]