diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 21:20:08 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 21:20:08 (GMT) |
commit | 39ba6c7842073a2db94a0022e556c71518f06da2 (patch) | |
tree | f28ed67425546d1b9cda4f3aeb62d90ee891a81b /commands/pull | |
parent | a76f5c9526141437d882d001b2b45e3a38920442 (diff) |
Try to get steps ordering right
Diffstat (limited to 'commands/pull')
-rwxr-xr-x | commands/pull | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/commands/pull b/commands/pull index cca1ff2..7314278 100755 --- a/commands/pull +++ b/commands/pull @@ -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 pull") @@ -14,9 +15,11 @@ args = parser.parse_args() common.setup(log_name="pull") if args.module: - success = build.pull_one(args.module) + if not build.pull_one(args.module): + sys.exit(1) else: - success = build.pull() + if not system.check(lazy=True): + sys.exit(1) -if not success: - sys.exit(1) + if not build.pull(): + sys.exit(1) |