sb: Fix the --without-error-report parsing of the label.

Update #2526.
This commit is contained in:
Chris Johns 2016-03-14 17:42:51 +11:00
parent 6e490ae1e1
commit 8d0e377a28

View File

@ -112,8 +112,8 @@ class build:
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'):
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)