mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 09:48:50 +01:00
bug fix in gitversion,when try to get git revision short hash
This commit is contained in:
parent
6b2ad6a58a
commit
452e583ef6
@ -282,8 +282,10 @@ class UpdatePage(Page):
|
||||
self._Screen.SwapAndShow()
|
||||
|
||||
elif "gitversion" in json_: ### just use git to run update
|
||||
cur_dir = os.getcwd()
|
||||
os.chdir("/home/cpi/apps/launcher")
|
||||
current_git_version = get_git_revision_short_hash()
|
||||
|
||||
os.chdir(cur_dir)
|
||||
if current_git_version != json_["gitversion"]:
|
||||
self._ConfirmPage._URL = None
|
||||
self._ConfirmPage._MD5 = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user