diff options
author | Chris Johns <chrisj@rtems.org> | 2014-10-31 15:10:31 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-10-31 15:11:10 +1100 |
commit | 85b46b85f1dbd5f8d982d68fc749e977a041512a (patch) | |
tree | f050890b79fda02fe7bb4b75b5afeea5165aed13 /source-builder/sb/options.py | |
parent | sb: Convert the '-' to '_' in symlinks for git repos. (diff) | |
download | rtems-source-builder-85b46b85f1dbd5f8d982d68fc749e977a041512a.tar.bz2 |
sb: Provide a default log if none is provided.
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r-- | source-builder/sb/options.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index 01aeb7b..cbdcfa3 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -21,6 +21,7 @@ # Determine the defaults and load the specific file. # +import datetime import glob import pprint import re @@ -458,7 +459,7 @@ class command_line: def logfiles(self): if 'log' in self.opts and self.opts['log'] is not None: return self.opts['log'].split(',') - return ['stdout'] + return ['rsb-log-%s.txt' % (datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))] def urls(self): if self.opts['url'] is not None: |