Merge branch 'backend_manual' of gitlab2.kylin.com:kylin-desktop/update-manager-group/kylin-system-updater into backend_manual

This commit is contained in:
luoxueyi 2022-08-18 10:38:44 +08:00
commit 4f452c6382
4 changed files with 20 additions and 7 deletions

View File

@ -340,7 +340,7 @@ class UpdateManager():
else:
logging.info("Check: (%s:%s) No need to upgrade and duo to not pust...",pkg_name,self_pkg.installed.source_version)
else:
logging.info("Check: (%s:%s) No need to upgrade...",pkg_name,self_pkg.installed.source_version)
logging.info("Check: (%s) Not to be installed...",pkg_name)
else:
logging.error("Check: (%s) The upgrade package is not in Cache...",pkg_name)

View File

@ -120,11 +120,11 @@ class UpdateManagerDbusController(dbus.service.Object):
obj = self.bus.get_object("org.freedesktop.NetworkManager","/org/freedesktop/NetworkManager")
interface = dbus.Interface(obj, "org.freedesktop.NetworkManager")
retval = interface.CheckConnectivity(timeout=0.5)
except Exception:
retval = 4
#1 表示没有网卡可以使用
if retval == 1:
raise UpdateBaseError(enums.ERROR_NETWORK_FAILED)
except Exception:
pass
def _check_prohibit_user(self, sender_name):
prohibit_list = ["dbus-send","gdbus"]

View File

@ -530,13 +530,16 @@ class InstallBackend():
pkg_cache = cache[pkg]
#将第二个参数调整为False 当为True时就不能检查缺少依赖的包 默认自动移除掉了
pkg_cache.mark_install(False, False, True)
pkg_cache.mark_install(False, True, True)
#将可自动升级的标记为自动安装
if pkg_cache.is_upgradable == True:
auto = pkg_cache.is_auto_installed
pkg_cache.mark_auto(auto)
if pkg_cache.marked_keep == True:
pkg_cache.mark_install(False, False, True)
resolver.clear(pkg_cache)
resolver.protect(pkg_cache)
#出现破损的原因有 升级一个包需要安装其他的包或者需要删除其他的软件包

12
debian/changelog vendored
View File

@ -1,4 +1,14 @@
kylin-system-updater (2.0.5.3.1) v101; urgency=medium
kylin-system-updater (2.0.5.5) v101; urgency=medium
* BUG: #120948 【在线更新】断网时检测更新失败的文案何设计图不符
# 134470 【设计】安装失败日志语言显示异常
* 需求号: # 无
* 其他改动说明: 无
* 其他改动影响域:系统更新
-- luoxueyi <luoxueyi@kylinos.cn> Thu, 04 Aug 2022 09:28:58 +0800
kylin-system-updater (2.0.5.4) v101; urgency=medium
* BUG: #134497 【在线更新】打开设置-更新,自动更新按钮默认是“打开”状态
#134493 【在线更新】【PTOF】更新完成后重启系统打开设置-更新界面,提示“后台程序未启动”