把安装卸载接口的关机锁打开

This commit is contained in:
luoxueyi 2022-07-11 14:20:17 +08:00
parent 4c4c8bbb59
commit a1a5999c04
1 changed files with 4 additions and 4 deletions

View File

@ -258,7 +258,7 @@ class InstallBackend():
self.fix_incomplete()
#卸载包
elif self.action == self.ACTION_REMOVE_PACKAGES:
# self._start_install_lock()
self._start_install_lock()
self.purge_packages(partial_upgrade_list)
elif self.action == self.ACTION_CLEAN:
self.clean()
@ -278,7 +278,7 @@ class InstallBackend():
# 安装本地deb包的接口
if self.action == self.ACTION_INSTALL_DEB:
try:
# self._start_install_lock()
self._start_install_lock()
self.install_deb(install_path = partial_upgrade_list, install_force = _is_install)
except Exception as e:
logging.error(str(e))
@ -710,11 +710,11 @@ class InstallBackend():
logging.warning("fix incomplete install failed.")
elif action == self.ACTION_REMOVE_PACKAGES:
# self._release_install_lock()
self._release_install_lock()
self.window_main.dbusController.PurgePackagesFinished(success,error_string,error_desc)
elif action == self.ACTION_INSTALL_DEB:
# self._release_install_lock()
self._release_install_lock()
#FIXME: '\r\n: \r\n\r\n'就认为是验证失败
if success == False and '\r\n: \r\n\r\n' in self.aptd_base.error_details:
error_string = _("Package validation failed and installation was rejected.")