From 858e43bcce540b871fc3dc6ebba05de40bdc99fb Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 14 Mar 2016 15:19:29 +1100 Subject: sb: Fix build's --with-error-report handling. This reflects changes in the way the --with/--without options are handled. Updates #2526. --- source-builder/sb/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source-builder/sb/build.py b/source-builder/sb/build.py index 4d8787c..747ad58 100644 --- a/source-builder/sb/build.py +++ b/source-builder/sb/build.py @@ -112,7 +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 == '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) -- cgit v1.2.3