コード例 #1
0
ファイル: update.py プロジェクト: Josh5/tinyos
def checkPrevious():
    if not downloaded():
        return

    utils.flagUpdate()

    if utils.yesno(1, 19, 20, 21):
        reboot()
コード例 #2
0
ファイル: update.py プロジェクト: Somali1/buildroot-M3-MX
def checkPrevious():
    if not downloaded():
        return

    utils.flagUpdate()

    if utils.yesno(1, 19, 20, 21):
        reboot()
コード例 #3
0
ファイル: update.py プロジェクト: Josh5/tinyos
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
コード例 #4
0
ファイル: update.py プロジェクト: Somali1/buildroot-M3-MX
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