mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08: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()
|
||||
os.chdir("/home/cpi/apps/launcher")
|
||||
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)
|
||||
if current_git_version != json_["gitversion"]:
|
||||
self._ConfirmPage._URL = None
|
||||
@ -302,7 +304,7 @@ class UpdatePage(Page):
|
||||
self._Screen._MsgBox.SetText("Out of update")
|
||||
self._Screen._MsgBox.Draw()
|
||||
self._Screen.SwapAndShow()
|
||||
pygame.time.delay(600)
|
||||
pygame.time.delay(765)
|
||||
|
||||
return True
|
||||
except Exception, e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user