def checkPrevious(): if not downloaded(): return utils.flagUpdate() if utils.yesno(1, 19, 20, 21): reboot()
def updateAvailable(latest): current = utils.getSetting('cVersion') current = current.split('.') latest = latest.split('.') length = min(len(current), len(latest)) for i in range(0, length): if int(latest[i]) > int(current[i]): utils.flagUpdate() return True return False