From 452e583ef6eb57c12797dc011aa7a4bdd14ab3c3 Mon Sep 17 00:00:00 2001 From: cuu Date: Sun, 27 May 2018 11:49:01 +0800 Subject: [PATCH] bug fix in gitversion,when try to get git revision short hash --- Menu/GameShell/10_Settings/Update/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Menu/GameShell/10_Settings/Update/__init__.py b/Menu/GameShell/10_Settings/Update/__init__.py index d3f513f..de17ef4 100644 --- a/Menu/GameShell/10_Settings/Update/__init__.py +++ b/Menu/GameShell/10_Settings/Update/__init__.py @@ -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