1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Handle half-built and abandoned vms better

This commit is contained in:
Ciaran Gultnieks 2013-06-04 22:41:39 +01:00
parent 8c1511fed1
commit 6c64632f48

View File

@ -49,8 +49,9 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, sdk_path, force):
vm_ok = False
if not options.resetserver:
print "Checking for valid existing build server"
if os.path.exists(os.path.join('builder', 'Vagrantfile')):
print "...directory exists"
if (os.path.exists(os.path.join('builder', 'Vagrantfile')) and
os.path.exists(os.path.join('builder', '.vagrant'))):
print "...VM is present"
p = subprocess.Popen(['VBoxManage', 'snapshot', get_builder_vm_id(), 'list', '--details'],
cwd='builder', stdout=subprocess.PIPE)
output = p.communicate()[0]