Ejemplo n.º 1
0
def checkPrevious():
    if not downloaded():
        return

    utils.flagUpdate()

    if utils.yesno(1, 19, 20, 21):
        reboot()
Ejemplo n.º 2
0
def checkPrevious():
    if not downloaded():
        return

    utils.flagUpdate()

    if utils.yesno(1, 19, 20, 21):
        reboot()
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
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