mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-16 03:38:50 +01:00
fix bug in compare git versions
This commit is contained in:
parent
bf97f79a04
commit
680b8c5a94
@ -285,6 +285,8 @@ class UpdatePage(Page):
|
|||||||
cur_dir = os.getcwd()
|
cur_dir = os.getcwd()
|
||||||
os.chdir("/home/cpi/apps/launcher")
|
os.chdir("/home/cpi/apps/launcher")
|
||||||
current_git_version = get_git_revision_short_hash()
|
current_git_version = get_git_revision_short_hash()
|
||||||
|
current_git_version = current_git_version.strip("\n")
|
||||||
|
current_git_version = current_git_version.strip("\t")
|
||||||
os.chdir(cur_dir)
|
os.chdir(cur_dir)
|
||||||
if current_git_version != json_["gitversion"]:
|
if current_git_version != json_["gitversion"]:
|
||||||
self._ConfirmPage._URL = None
|
self._ConfirmPage._URL = None
|
||||||
@ -302,7 +304,7 @@ class UpdatePage(Page):
|
|||||||
self._Screen._MsgBox.SetText("Out of update")
|
self._Screen._MsgBox.SetText("Out of update")
|
||||||
self._Screen._MsgBox.Draw()
|
self._Screen._MsgBox.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
pygame.time.delay(600)
|
pygame.time.delay(765)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user