From b8a841a7e487517883750fe8fa36dd326f53fa0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 4 Feb 2014 10:55:14 +0100 Subject: [PATCH] Fix vagrant popen error --- fdroidserver/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index bdf54ed2..dd669712 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -124,8 +124,9 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force): shutil.rmtree('builder') os.mkdir('builder') - p = FDroidPopen('vagrant --version', shell=True, stdout=subprocess.PIPE) - if p.stdout.startswith('Vagrant version 1.2'): + p = subprocess.Popen('vagrant --version', shell=True, stdout=subprocess.PIPE) + vver = p.communicate()[0] + if vver.startswith('Vagrant version 1.2'): with open('builder/Vagrantfile', 'w') as vf: vf.write('Vagrant.configure("2") do |config|\n') vf.write('config.vm.box = "buildserver"\n')