From 11b68e962fe97bbb846b736c6527a78f9d82c0d5 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Thu, 27 Dec 2012 00:28:22 +0000 Subject: Don't print building if we are not --- (limited to 'devbot') 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() -- cgit v0.9.1