通过字符来识别是验证失败导致出现的错误
This commit is contained in:
parent
a89d8b7572
commit
ba1a9d6cc5
|
@ -352,7 +352,7 @@ class InstallBackendAptdaemon(InstallBackend):
|
|||
if self.action == self.ACTION_REMOVE_PACKAGES or self.action == self.ACTION_UPDATE:
|
||||
return
|
||||
|
||||
logging.info("\033[43;1m" + "Emitting" + "\033[0m" +" Cancelable: %r",Cancelable)
|
||||
logging.info("\033[1;32m" + "Emitting" + "\033[0m" +" Cancelable: %r",Cancelable)
|
||||
self.window_main.dbusController.Cancelable(Cancelable)
|
||||
#增加取消信号的频发机制
|
||||
self.trans_cancelable = Cancelable
|
||||
|
|
|
@ -451,6 +451,10 @@ class InstallBackend():
|
|||
self.window_main.dbusController.PurgePackagesFinished(success,error_string,error_desc)
|
||||
|
||||
elif action == self.ACTION_INSTALL_DEB:
|
||||
#FIXME: '\r\n: \r\n\r\n'就认为是验证失败
|
||||
if success == False and '\r\n: \r\n\r\n' in self.trans_error_details:
|
||||
error_string = "Package validation failed and installation was rejected."
|
||||
error_desc = ''
|
||||
self.window_main.dbusController.InstalldebFinished(success,error_string,error_desc)
|
||||
|
||||
#将安装完成的插入数据库 安装失败的计算那些包安装失败了 分类插入数据库中
|
||||
|
|
|
@ -2598,6 +2598,9 @@ msgstr "更新管理器升级完成,请重启控制面板后再进行系统更
|
|||
msgid "Uninstallation completed"
|
||||
msgstr "卸载完成。"
|
||||
|
||||
msgid "Package validation failed and installation was rejected."
|
||||
msgstr "软件包验证失败,拒绝安装。"
|
||||
|
||||
msgid "Other tasks are being updated and upgraded, please uninstall them later."
|
||||
msgstr "其他任务正在更新升级中,请稍后再卸载。"
|
||||
|
||||
|
|
Loading…
Reference in New Issue