Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-25 11:38:32 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-25 11:39:55 (GMT)
commite61e2694d6d708d59cb7fb2947b410efeb954dc5 (patch)
treea25d57f85c38558cbf2d916abb0d95815db7a51b /commands
parent1419bd6f63c289f985f6bdb18f8071211faa735e (diff)
Check system before building
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/build4
-rwxr-xr-xcommands/check-system10
2 files changed, 10 insertions, 4 deletions
diff --git a/commands/build b/commands/build
index 6911394..d86fecd 100755
--- a/commands/build
+++ b/commands/build
@@ -5,6 +5,7 @@ import sys
import common
+from devbot import system
from devbot import build
parser = argparse.ArgumentParser()
@@ -13,6 +14,9 @@ args = parser.parse_args()
common.setup()
+if not system.check(skip_if_unchanged=True):
+ sys.exit(1)
+
if args.module:
success = build.build_one(args.module)
else:
diff --git a/commands/check-system b/commands/check-system
index 6655775..f610bcb 100755
--- a/commands/check-system
+++ b/commands/check-system
@@ -1,6 +1,7 @@
#!/usr/bin/python -u
import argparse
+import sys
import os
import common
@@ -20,7 +21,8 @@ args = parser.parse_args()
interactive = "SUGAR_BUILDBOT" not in os.environ
-system.check(update=args.update,
- remove=args.remove,
- test=args.test,
- interactive=interactive)
+if not system.check(update=args.update,
+ remove=args.remove,
+ test=args.test,
+ interactive=interactive):
+ sys.exit(1)