If specified, add Branch to build dir name

This commit is contained in:
Bob Lantz
2014-01-13 23:35:15 -08:00
parent 75abd94bf5
commit c90fb34d6d
+2
View File
@@ -692,6 +692,8 @@ def build( flavor='raring32server', tests=None, pre='', post='', memory=1024 ):
date = strftime( '%y%m%d-%H-%M-%S', lstart) date = strftime( '%y%m%d-%H-%M-%S', lstart)
ovfdate = strftime( '%y%m%d', lstart ) ovfdate = strftime( '%y%m%d', lstart )
dir = 'mn-%s-%s' % ( flavor, date ) dir = 'mn-%s-%s' % ( flavor, date )
if Branch:
dir = 'mn-%s-%s-%s' % ( Branch, flavor, date )
try: try:
os.mkdir( dir ) os.mkdir( dir )
except: except: