Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/build
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-28 21:59:21 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-28 21:59:21 (GMT)
commitff8370dc4d0d57f24b7b68bbe582d2dbbf76eda6 (patch)
tree155106afff67b6cc1dd6a1c64f7eb6c5b1a4e9ab /commands/build
parentc3a37eaf4f75e9f6e072121cc237a57d8605a6e3 (diff)
Add a run_build function to main
This avoids duplication and circular deps
Diffstat (limited to 'commands/build')
-rwxr-xr-xcommands/build11
1 files changed, 2 insertions, 9 deletions
diff --git a/commands/build b/commands/build
index 9d8b51b..aa313b4 100755
--- a/commands/build
+++ b/commands/build
@@ -5,8 +5,7 @@ import sys
import common
-from devbot import build
-from devbot import system
+from devbot import main
parser = argparse.ArgumentParser()
parser.add_argument("module", nargs="?", help="name of the module to build")
@@ -19,11 +18,5 @@ if args.module:
if not build.build_one(args.module):
sys.exit(1)
else:
- if not system.check(lazy=True):
- sys.exit(1)
-
- if not build.pull(lazy=True):
- sys.exit(1)
-
- if not build.build(full=args.full):
+ if not main.run_build(full=args.full):
sys.exit(1)