check for deps first

This commit is contained in:
j 2015-06-07 11:32:11 +02:00
parent 25c24d6f20
commit b4e301343b

View file

@ -49,10 +49,6 @@ class Install(Thread):
os.symlink('openmedialibrary/ctl', 'ctl')
self.status['progress'] = 0
self.status['installing'] = 'setup'
os.system('./ctl setup')
self.status['progress'] = 1
with open('config/release.json', 'w') as fd:
json.dump(release, fd, indent=2)
if sys.platform == 'darwin':
os.system('./ctl install_launcher')
elif sys.platform.startswith('linux'):
@ -84,6 +80,10 @@ class Install(Thread):
if 'miredo' in apt_packages:
print('You need to install miredo (or get IPv6 in another way)')
os.system('./ctl install_launcher')
os.system('./ctl setup')
self.status['progress'] = 1
with open('config/release.json', 'w') as fd:
json.dump(release, fd, indent=2)
self.status['done'] = True
def download(self, url, filename):