reset buildserver vm if vagrant uuid not present

This commit is contained in:
Michael Pöhn 2017-04-13 18:41:50 +02:00 committed by Hans-Christoph Steiner
parent 510efaa024
commit 48159f005a
2 changed files with 10 additions and 1 deletions

View file

@ -184,6 +184,12 @@ class FDroidBuildVm():
def package(self, output=None, vagrantfile=None, keep_box_file=None):
self.vgrnt.package(output=output, vagrantfile=vagrantfile)
def vagrant_uuid_okay(self):
'''Having an uuid means that vagrant up has run successfully.'''
if self.srvuuid is None:
return False
return True
def _vagrant_file_name(self, name):
return name.replace('/', '-VAGRANTSLASH-')