From 39ba6c7842073a2db94a0022e556c71518f06da2 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 28 Dec 2012 21:20:08 +0000 Subject: Try to get steps ordering right --- (limited to 'commands/build') diff --git a/commands/build b/commands/build index da62f82..9d8b51b 100755 --- a/commands/build +++ b/commands/build @@ -6,6 +6,7 @@ import sys import common from devbot import build +from devbot import system parser = argparse.ArgumentParser() parser.add_argument("module", nargs="?", help="name of the module to build") @@ -15,9 +16,14 @@ args = parser.parse_args() common.setup(log_name="build") if args.module: - success = build.build_one(args.module) + if not build.build_one(args.module): + sys.exit(1) else: - success = build.build(full=args.full) + if not system.check(lazy=True): + sys.exit(1) -if not success: - sys.exit(1) + if not build.pull(lazy=True): + sys.exit(1) + + if not build.build(full=args.full): + sys.exit(1) -- cgit v0.9.1