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>2012-11-14 19:26:15 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-14 19:26:15 (GMT)
commit4acd6c57bb9cc42684e97798a54d1d2c65f2cd45 (patch)
treeb3b08e58ff09d4d03fa7088366a3f77271f6ff9b /commands/check-system
parentf224c82c3dc67cedc81607a4e915e23c1c64bab4 (diff)
Add autoupdate and autoremove options to the script
Diffstat (limited to 'commands/check-system')
-rwxr-xr-xcommands/check-system12
1 files changed, 11 insertions, 1 deletions
diff --git a/commands/check-system b/commands/check-system
index aca432f..ef559b1 100755
--- a/commands/check-system
+++ b/commands/check-system
@@ -1,8 +1,18 @@
#!/usr/bin/python
+import argparse
+
import common
from devbot import system
common.setup()
-system.check()
+
+parser = argparse.ArgumentParser(description='Check the system')
+parser.add_argument("--autoupdate", action="store_true",
+ help="first of all update the system")
+parser.add_argument("--autoremove", action="store_true",
+ help="remove all the unnecessary packages")
+args = parser.parse_args()
+
+system.check(autoupdate=args.autoupdate, autoremove=args.autoremove)