修改自动更新名

This commit is contained in:
luoxueyi 2022-08-24 17:31:40 +08:00
parent 420e6e5cb6
commit eb0a71a0ce
2 changed files with 9 additions and 7 deletions

View File

@ -578,15 +578,14 @@ class Sqlite3Server(object):
and "status_cn" in upgrade_info.keys() \ and "status_cn" in upgrade_info.keys() \
and "changelog" in upgrade_info.keys(): and "changelog" in upgrade_info.keys():
appname = upgrade_info["appname"] appname = upgrade_info["appname"]
if "(" in appname and ")" in appname: if "kylin-unattended-upgrade" == appname:
appname_orig = appname.split("(")[0] upgrade_info["appname"] = self.get_cn_appname(appname)
appname_suffix = "("+appname.split("(")[1] if upgrade_info["appname"] == "":
if appname_orig in self.window_main.cache: upgrade_info["appname"] = _("kylin-unattended-upgrade")
pkg = self.window_main.cache[appname_orig] if appname in self.window_main.cache and upgrade_info["description"] == "":
pkg = self.window_main.cache[appname]
if pkg.is_installed: if pkg.is_installed:
upgrade_info["description"] = pkg.installed.description upgrade_info["description"] = pkg.installed.description
upgrade_info["appname"] = self.get_cn_appname(appname_orig)+appname_suffix
upgrade_info["status_cn"] = self.get_cn_appname(appname_orig)
self.insert_into_updateinfo( upgrade_info["appname"], upgrade_info["version"], \ self.insert_into_updateinfo( upgrade_info["appname"], upgrade_info["version"], \
upgrade_info["description"], \ upgrade_info["description"], \
upgrade_info["date"], \ upgrade_info["date"], \

View File

@ -2752,3 +2752,6 @@ msgstr "安装软件包失败。"
msgid "Upgrade System" msgid "Upgrade System"
msgstr "全盘升级" msgstr "全盘升级"
msgid "kylin-unattended-upgrade"
msgstr "自动更新"