From ff8370dc4d0d57f24b7b68bbe582d2dbbf76eda6 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 28 Dec 2012 21:59:21 +0000 Subject: Add a run_build function to main This avoids duplication and circular deps --- (limited to 'commands/run') diff --git a/commands/run b/commands/run index e3f311a..ef8e9af 100755 --- a/commands/run +++ b/commands/run @@ -5,18 +5,11 @@ import sys import common from devbot import run -from devbot import build -from devbot import system +from devbot import main common.setup(log_name="run") -if not system.check(lazy=True): - sys.exit(1) - -if not build.pull(lazy=True): - sys.exit(1) - -if not build.build(): +if not main.run_build(): sys.exit(1) run.run("sugar-runner") -- cgit v0.9.1