mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Handle half-built and abandoned vms better
This commit is contained in:
parent
8c1511fed1
commit
6c64632f48
1 changed files with 3 additions and 2 deletions
|
|
@ -49,8 +49,9 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, sdk_path, force):
|
||||||
vm_ok = False
|
vm_ok = False
|
||||||
if not options.resetserver:
|
if not options.resetserver:
|
||||||
print "Checking for valid existing build server"
|
print "Checking for valid existing build server"
|
||||||
if os.path.exists(os.path.join('builder', 'Vagrantfile')):
|
if (os.path.exists(os.path.join('builder', 'Vagrantfile')) and
|
||||||
print "...directory exists"
|
os.path.exists(os.path.join('builder', '.vagrant'))):
|
||||||
|
print "...VM is present"
|
||||||
p = subprocess.Popen(['VBoxManage', 'snapshot', get_builder_vm_id(), 'list', '--details'],
|
p = subprocess.Popen(['VBoxManage', 'snapshot', get_builder_vm_id(), 'list', '--details'],
|
||||||
cwd='builder', stdout=subprocess.PIPE)
|
cwd='builder', stdout=subprocess.PIPE)
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue