更新报错时词条统一显示检查更新异常,详细描述信息在悬浮框显示

This commit is contained in:
wangsong 2022-08-13 14:05:04 +08:00
parent 5567bc9398
commit 295da5b6a4
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ from .Core.loop import mainloop
from .Core.DataAcquisition import UpdateMsgCollector
from SystemUpdater.Core.UpdaterConfigParser import UpgradeConfig
from SystemUpdater.Core.utils import get_broken_details,kill_process
from SystemUpdater.Core.utils import kill_process
from SystemUpdater.Core.DpkgInstallProgress import LogInstallProgress
from SystemUpdater.Core.utils import deb_verify,PolicyKit_Authority,get_proc_from_dbus_name

View File

@ -747,7 +747,8 @@ class InstallBackend():
#开始生成列表
self.window_main.start_available()
else:
self.window_main.dbusController.UpdateDetectFinished(success,[''],error_string+''+error_desc,error_desc)
self.window_main.dbusController.UpdateDetectFinished(success,[''],get_error_string_from_enum(ERROR_UPDATE_DEFAULT_FAILED),\
error_string +' '+error_desc)
self.window_main.sqlite3_server.insert_into_display("check_time",get_east_8_time()[0:-4])
elif action == self.ACTION_UPDATE and self.action_mode == self.MODE_UPDATE_CACHE: