From 38720618e2382cae228b8b839203b26ab344a26c Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Thu, 03 Jan 2013 22:23:18 +0000 Subject: Check system before setting up the environ --- (limited to 'devbot') diff --git a/devbot/main.py b/devbot/main.py index 1584e6a..eaa31a3 100644 --- a/devbot/main.py +++ b/devbot/main.py @@ -17,9 +17,6 @@ def run_build(full=False): state.full_build_touch() - if not system.check(lazy=True): - return False - if not build.pull(lazy=True): return False @@ -35,10 +32,15 @@ def load_plugins(): imp.load_module(name, f, filename, desc) -def setup(config_args): +def setup(config_args, check_args): load_plugins() config.setup(**config_args) + if not system.check(**check_args): + return False + environ.setup_variables() environ.setup_gconf() + + return True diff --git a/devbot/system.py b/devbot/system.py index cefca1c..dc2ac42 100644 --- a/devbot/system.py +++ b/devbot/system.py @@ -11,7 +11,7 @@ _checkers = {} def check(remove=False, update=False, test=False, interactive=True, - lazy=False): + lazy=True): if lazy: if state.system_check_is_unchanged(): return True -- cgit v0.9.1