Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/check-system
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-03 22:23:18 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-03 22:23:18 (GMT)
commit38720618e2382cae228b8b839203b26ab344a26c (patch)
treebf0c8a130466c5088376ee7a5b061e6049159bfc /commands/check-system
parentf5169db238558ab5ac70dc98e82fb8e7581cc4c0 (diff)
Check system before setting up the environ
Diffstat (limited to 'commands/check-system')
-rwxr-xr-xcommands/check-system16
1 files changed, 6 insertions, 10 deletions
diff --git a/commands/check-system b/commands/check-system
index f610bcb..f471f58 100755
--- a/commands/check-system
+++ b/commands/check-system
@@ -1,15 +1,10 @@
#!/usr/bin/python -u
import argparse
-import sys
import os
import common
-from devbot import system
-
-common.setup()
-
parser = argparse.ArgumentParser(description='Check the system')
parser.add_argument("--update", action="store_true",
help="first of all update the system")
@@ -21,8 +16,9 @@ args = parser.parse_args()
interactive = "SUGAR_BUILDBOT" not in os.environ
-if not system.check(update=args.update,
- remove=args.remove,
- test=args.test,
- interactive=interactive):
- sys.exit(1)
+check_args = {"update": args.update,
+ "remove": args.remove,
+ "test": args.test,
+ "interactive": interactive}
+
+common.setup(check_args=check_args)