[rtems-source-builder commit] sb: Provide a default log if none is provided .

Chris Johns chrisj at rtems.org
Fri Oct 31 04:02:12 UTC 2014


Module:    rtems-source-builder
Branch:    master
Commit:    85b46b85f1dbd5f8d982d68fc749e977a041512a
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=85b46b85f1dbd5f8d982d68fc749e977a041512a

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Oct 31 15:10:31 2014 +1100

sb: Provide a default log if none is provided.

---

 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:



More information about the vc mailing list