Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/pull
diff options
context:
space:
mode:
Diffstat (limited to 'commands/pull')
-rwxr-xr-xcommands/pull11
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)