Merge branch 'backend_manual' into 'backend_uu'

Backend manual

See merge request kylinos-src/update-manager-group/kylin-system-updater!504
This commit is contained in:
网松 2022-10-12 01:17:51 +00:00
commit 8e2bd11000
2 changed files with 5 additions and 5 deletions

View File

@ -307,9 +307,9 @@ class InstallBackendAptdaemon(InstallBackend):
error_string='', error_desc='')
except Exception as e:
logging.error(str(e))
self._action_done(self.ACTION_REMOVE_PACKAGES,
is_cancelled=False, success=False,
error_string=str(e), error_desc='')
# self._action_done(self.ACTION_REMOVE_PACKAGES,
# is_cancelled=False, success=False,
# error_string=str(e), error_desc='')
#进度回调
def _on_progress_changed(self, trans,progress,action):
@ -354,7 +354,7 @@ class InstallBackendAptdaemon(InstallBackend):
if progress > 51 and progress < 90 and self.on_install_stage == False:
logging.info("The process is now in the installtion phase")
self.on_install_stage = True
self._start_install_lock()
self._start_install_lock(_("Kylin System Updater"))
#只处理从下载切换到安装时出现的网络问题
#当网络波动时下载某些软件包失败时属于异常状态进行重试时 不发送后续进度 等待重试正常是 进行下载安装

View File

@ -325,7 +325,7 @@ class InstallBackend():
self.fix_incomplete()
#卸载包
elif self.action == self.ACTION_REMOVE_PACKAGES:
self._start_install_lock()
self._start_install_lock(_("Kylin System Updater"))
self.purge_packages(partial_upgrade_list)
elif self.action == self.ACTION_CLEAN:
self.clean()