def do_update(name, path, server): up = Autoupdate(path) try: for p in up.update(server): update_cb(name, p) except Exception as e: log.exception(e) errord[0] = True update_cb('error', e)
def is_version_present(self, version): import settings up = Autoupdate(settings.LOGIC_UPDATE_BASE) return up.is_version_present(version)
def get_current_version(self): import settings up = Autoupdate(settings.LOGIC_UPDATE_BASE) return up.get_current_version()
def switch_version(self, version): import settings up = Autoupdate(settings.LOGIC_UPDATE_BASE) return up.switch(version)