Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/check-system
blob: ef559b142ccc26758156e057f3f486610af24462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python

import argparse

import common

from devbot import system

common.setup()

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)