sb: Move the option check for reporting errors to the error reporter.

Updates #2536.
This commit is contained in:
Chris Johns
2017-10-12 13:40:12 +11:00
parent c4b6bf0d6d
commit 6dc551cf47
2 changed files with 34 additions and 33 deletions

View File

@@ -111,11 +111,8 @@ class build:
return name
def _generate_report_(self, header, footer = None):
label, result = self.opts.with_arg('error-report')
if (label.startswith('without_') and result != 'yes') or \
(label.startswith('with_') and result != 'no'):
ereport.generate('rsb-report-%s.txt' % self.macros['name'],
self.opts, header, footer)
ereport.generate('rsb-report-%s.txt' % self.macros['name'],
self.opts, header, footer)
def __init__(self, name, create_tar_files, opts, macros = None):
try: