diff options
author | 2009-11-07 18:33:01 +0100 | |
---|---|---|
committer | 2009-11-07 18:33:01 +0100 | |
commit | ca6a97a402c4191350f52b6b18cb90199ad8e91c (patch) | |
tree | d7c433d9f5004185d2d716cfe47b2caed93a5c9c /tools | |
parent | Small bugfix (diff) | |
download | kernel-check-ca6a97a402c4191350f52b6b18cb90199ad8e91c.tar.gz kernel-check-ca6a97a402c4191350f52b6b18cb90199ad8e91c.tar.bz2 kernel-check-ca6a97a402c4191350f52b6b18cb90199ad8e91c.zip |
Fix some bugs
Remove expand from interval
Rename "other" to "diff"
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cron.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/cron.py b/tools/cron.py index d280606..17475ab 100755 --- a/tools/cron.py +++ b/tools/cron.py @@ -27,9 +27,9 @@ NOCVEDESC = 'This GENERIC identifier is not specific to any vulnerability. '\ 'services to specify when a particular vulnerability element ' \ 'does not map to a corresponding CVE entry.' DELAY = 0.2 -SKIP = True +SKIP = False MINYEAR = 2002 -MAXYEAR = 2020 +MAXYEAR = 2012 NVDURL = 'http://nvd.nist.gov/' BZURL = 'https://bugs.gentoo.org/' STATE = ['NEW', 'ASSIGNED', 'REOPENED', 'RESOLVED', 'VERIFIED', 'CLOSED'] @@ -38,7 +38,7 @@ BUGORDER = ['bugid', 'reporter', 'reported', 'status', 'arch', 'affected'] CVEORDER = ['cve', 'published', 'desc', 'severity', 'vector', 'score', 'refs'] FILEPATH = os.path.dirname(os.path.realpath(__file__)) PORTDIR = portage.settings['PORTDIR'] -LOGFILE = None #os.path.join(FILEPATH, 'cron.log') +LOGFILE = os.path.join(FILEPATH, 'cron.log') DIR = { 'tmp' : os.path.join(FILEPATH, 'tmp'), 'out' : os.path.join(PORTDIR, 'metadata', 'kernel'), @@ -66,7 +66,7 @@ logging.basicConfig(format='[%(asctime)s] %(levelname)-6s : %(message)s', def main(argv): 'Main function' - logging.info('Running cron...') + logging.info('Running cron') current_year = datetime.datetime.now().year if current_year < MINYEAR or current_year > MAXYEAR: |