[rtems-source-builder commit] sb: Disable a log file for the check command.

Chris Johns chrisj at rtems.org
Fri Jan 19 00:41:37 UTC 2018


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Jan 18 13:38:52 2018 +1100

sb: Disable a log file for the check command.

Fix a minor issue in the log module.

---

 source-builder/sb/check.py | 2 +-
 source-builder/sb/log.py   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/source-builder/sb/check.py b/source-builder/sb/check.py
index 183f4af..ef8f6a4 100644
--- a/source-builder/sb/check.py
+++ b/source-builder/sb/check.py
@@ -263,7 +263,7 @@ def check_orphans(opts):
 def run():
     import sys
     try:
-        _opts = options.load(args = sys.argv)
+        _opts = options.load(args = sys.argv, logfile = False)
         log.notice('RTEMS Source Builder - Check, %s' % (version.str()))
 
         orphans = _opts.parse_args('--check-orphans', error = False, extra = False)
diff --git a/source-builder/sb/log.py b/source-builder/sb/log.py
index b0a9001..301bd96 100755
--- a/source-builder/sb/log.py
+++ b/source-builder/sb/log.py
@@ -40,6 +40,7 @@ tracing = False
 quiet = False
 
 def set_default_once(log):
+    global default
     if default is None:
         default = log
 



More information about the vc mailing list