mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Fix vagrant popen error
This commit is contained in:
parent
b8e48f32f7
commit
b8a841a7e4
1 changed files with 3 additions and 2 deletions
|
|
@ -124,8 +124,9 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
|
||||||
shutil.rmtree('builder')
|
shutil.rmtree('builder')
|
||||||
os.mkdir('builder')
|
os.mkdir('builder')
|
||||||
|
|
||||||
p = FDroidPopen('vagrant --version', shell=True, stdout=subprocess.PIPE)
|
p = subprocess.Popen('vagrant --version', shell=True, stdout=subprocess.PIPE)
|
||||||
if p.stdout.startswith('Vagrant version 1.2'):
|
vver = p.communicate()[0]
|
||||||
|
if vver.startswith('Vagrant version 1.2'):
|
||||||
with open('builder/Vagrantfile', 'w') as vf:
|
with open('builder/Vagrantfile', 'w') as vf:
|
||||||
vf.write('Vagrant.configure("2") do |config|\n')
|
vf.write('Vagrant.configure("2") do |config|\n')
|
||||||
vf.write('config.vm.box = "buildserver"\n')
|
vf.write('config.vm.box = "buildserver"\n')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue