[rtems-source-builder commit] sb: Fix build' s --with-error-report handling.

Chris Johns chrisj at rtems.org
Mon Mar 14 04:23:45 UTC 2016


Module:    rtems-source-builder
Branch:    4.11
Commit:    858e43bcce540b871fc3dc6ebba05de40bdc99fb
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=858e43bcce540b871fc3dc6ebba05de40bdc99fb

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon Mar 14 15:19:29 2016 +1100

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)
 




More information about the vc mailing list