Hi,
if debsecan reads the config file before it checks the validity of the
options, the suite option must not be set at command line, but its value
is read from the config file. This way I can add the option --only-fixed
to the call in the cron script, without the need to set the option
--suite.
diff --git a/debsecan b/debsecan
index 7ef7deb..dc45de7 100755
--- a/debsecan
+++ b/debsecan
@@ -353,6 +353,13 @@ def parse_cli():
process_whitelist_options()
+ config = read_config(options.config)
+ if options.cron and not options.mailto:
+ options.mailto = config.get('MAILTO', '')
+ if options.mailto == '':
+ options.mailto = 'root'
+ options.suite = options.suite or config.get('SUITE', None)
+
if options.cron:
options.format = 'report'
options.update_history = True
@@ -373,12 +380,6 @@ def parse_cli():
sys.exit(1)
options.need_history = options.format == 'report'
- config = read_config(options.config)
- if options.cron and not options.mailto:
- options.mailto = config.get('MAILTO', '')
- if options.mailto == '':
- options.mailto = 'root'
- options.suite = options.suite or config.get('SUITE', None)
if options.suite == 'GENERIC':
options.suite = None
options.subject = config.get(