diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-27 00:28:22 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-27 00:28:22 (GMT) |
commit | 11b68e962fe97bbb846b736c6527a78f9d82c0d5 (patch) | |
tree | c2d7ec95b06e5e932ba163126f7d92767d42fe73 /devbot | |
parent | 96b68dfec3ca5ad94e48aa3609d727b66da39f81 (diff) |
Don't print building if we are not
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/build.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/devbot/build.py b/devbot/build.py index a5a4906..9193b04 100644 --- a/devbot/build.py +++ b/devbot/build.py @@ -62,18 +62,25 @@ def build(full=False): environ.setup() - _ccache_reset() - state.full_build_touch() pull(lazy=True) - print "\n= Building =\n" - + to_build = [] for module in config.load_modules(): if not state.built_module_is_unchanged(module): - if not _build_module(module): - return False + to_build.append(module) + + if not to_build: + return True + + print "\n= Building =\n" + + _ccache_reset() + + for module in to_build: + if not _build_module(module): + return False _ccache_print_stats() |