1 # Copyright 2005-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 """Check and clean old logs in the PORT_LOGDIR.
10 'description': __doc__,
15 'description': __doc__,
16 'functions': ['check','clean'],
19 "short": "-C", "long": "--clean",
20 "help": "Cleans out logs more than 7 days old (cleanlogs only)" + \
21 " module-options: -t, -p",
22 'status': "Cleaning %s",
23 'action': 'store_true',
27 "short": "-t", "long": "--time",
28 "help": "(cleanlogs only): -t, --time Delete logs older than NUM of days",
35 "short": "-p", "long": "--pretend",
36 "help": "(cleanlogs only): -p, --pretend Output logs that would be deleted",
38 'action': 'store_true',