sb: Fix build's --with-error-report handling.

This reflects changes in the way the --with/--without options are handled.

Updates #2526.
This commit is contained in:
Chris Johns 2016-03-14 15:19:29 +11:00
parent 703c85433e
commit e8f351915e

View File

@ -112,7 +112,8 @@ class build:
def _generate_report_(self, header, footer = None): def _generate_report_(self, header, footer = None):
label, result = self.opts.with_arg('error-report') label, result = self.opts.with_arg('error-report')
if label.startswith('without') and result == 'no': if (label.startswith('without') and result != 'yes') or \
(label.startswith('with') and result != 'no'):
ereport.generate('rsb-report-%s.txt' % self.macros['name'], ereport.generate('rsb-report-%s.txt' % self.macros['name'],
self.opts, header, footer) self.opts, header, footer)