import yaml
from clint.textui import progress
from optparse import OptionParser
+import fdroidserver.tail
if not os.path.exists('makebuildserver') and not os.path.exists('buildserver'):
config['hwvirtex'] = 'on'
logfilename = os.path.join(serverdir, 'up.log')
+if not os.path.exists(logfilename):
+ open(logfilename, 'a').close() # create blank file
log_cm = vagrant.make_file_cm(logfilename)
v = vagrant.Vagrant(root=serverdir, out_cm=log_cm, err_cm=log_cm)
+if options.verbose:
+ tail = fdroidserver.tail.Tail(logfilename)
+ tail.start()
+
if options.clean:
v.destroy()
if config['vm_provider'] == 'libvirt':
v.box_add('buildserver', boxfile, force=True)
os.remove(boxfile)
+
+if tail is not None:
+ tail.stop()