summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-01-18 13:38:52 +1100
committerChris Johns <chrisj@rtems.org>2018-01-18 13:38:52 +1100
commita293ddc992ab2cf757b6dfea58ef3697494b5e95 (patch)
tree18af49872ba907b4d2fc10f2f297f289256556dd
parent3ddbd791b860404874396e70c221b7408d1da257 (diff)
downloadrtems-source-builder-a293ddc992ab2cf757b6dfea58ef3697494b5e95.tar.bz2
sb: Disable a log file for the check command.
Fix a minor issue in the log module.
-rw-r--r--source-builder/sb/check.py2
-rwxr-xr-xsource-builder/sb/log.py1
2 files changed, 2 insertions, 1 deletions
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 fa16874..7c0f8e8 100755
--- a/source-builder/sb/log.py
+++ b/source-builder/sb/log.py
@@ -45,6 +45,7 @@ tracing = False
quiet = False
def set_default_once(log):
+ global default
if default is None:
default = log