update strings

This commit is contained in:
rlx 2016-01-16 20:13:54 +05:30
commit d7975a870b
2 changed files with 13 additions and 13 deletions

View file

@ -263,21 +263,21 @@ class Update(Thread):
def install(self):
while update_available():
self.status('Downloading new version...')
self.status('Downloading...')
while not download():
self.status('Download failed... (try again in 10 seconds)')
time.sleep(10)
self.status('Downloading new version...')
self.status('Installing new version...')
self.status('Download failed, retrying...')
time.sleep(5)
self.status('Downloading...')
self.status('Installing...')
if not install(False):
self.status('Installation failed...')
self.status('Installation failed.')
return True
return False
def update_database(self):
db_version = settings.server.get('db_version', 0)
if db_version < settings.DB_VERSION:
self.status('Migrating database...')
self.status('Updating...')
if db_version < 1:
db_version = migrate_1()
if db_version < 2:
@ -285,7 +285,7 @@ class Update(Thread):
settings.server['db_version'] = settings.DB_VERSION
def run(self):
self.status('Checking for Updates...')
self.status('Checking for updates...')
self.update_database()
if self.install():
restart_oml()