增加新词条 正在更新分组配置

This commit is contained in:
wangsong 2022-04-02 16:48:22 +08:00
parent c5efa17fa3
commit ccd4985ae0
3 changed files with 7 additions and 5 deletions

View File

@ -479,6 +479,8 @@ class UpdateManager():
pkg_json.installed.source_version,pkg_json.candidate.source_version)
pkg_json.mark_upgrade()
self.dbusController.UpdateDetectStatusChanged(95,_("group configuration being updated"))
self.start_install(InstallBackend.MODE_UPGRADE_SINGLE,True)
#直接退出
_success = False
@ -488,6 +490,7 @@ class UpdateManager():
logging.info("Check: ConfigPkgs(%s:%s) No need to upgrade...",self.GROUPS_PKG_NAME,pkg_json.installed.source_version)
else:
logging.info("Check: groups JSON ConfigPkgs(%s) start new installing...",self.GROUPS_PKG_NAME)
self.dbusController.UpdateDetectStatusChanged(95,_("group configuration being updated"))
pkg_json.mark_install()
self.start_install(InstallBackend.MODE_UPGRADE_SINGLE,True)
#直接退出

View File

@ -24,8 +24,4 @@ Kylin-system-updater::OutputConfigDir "/var/lib/kylin-system-updater/json";
Kylin-system-updater::ImportantListDir "/var/lib/kylin-software-properties/template/important.list";
Dir::Bin::Methods::ftp "ftp";
DPkg::Options{
"--force-confnew";
};
Dir::Bin::Methods::ftp "ftp"

View File

@ -2580,6 +2580,9 @@ msgstr "本次更新无法检测到可升级的软件包。"
msgid "read important list failed"
msgstr "无法读取推送升级列表,请稍后再试"
msgid "group configuration being updated"
msgstr "正在更新分组配置"
msgid "groups JSON ConfigPkgs install failed"
msgstr "无法安装分组配置文件,请稍后再试"