Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/main.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-03 22:23:18 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-03 22:23:18 (GMT)
commit38720618e2382cae228b8b839203b26ab344a26c (patch)
treebf0c8a130466c5088376ee7a5b061e6049159bfc /devbot/main.py
parentf5169db238558ab5ac70dc98e82fb8e7581cc4c0 (diff)
Check system before setting up the environ
Diffstat (limited to 'devbot/main.py')
-rw-r--r--devbot/main.py10
1 files changed, 6 insertions, 4 deletions
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