全盘升级进行saveDistUpgrade

This commit is contained in:
luoxueyi 2021-10-12 09:13:43 +08:00
parent 89400a1df5
commit f8c21f76c4
1 changed files with 3 additions and 2 deletions

View File

@ -166,6 +166,7 @@ class UpdateManagerDbusController(dbus.service.Object):
else:
if True:
#查找所有可升级的包
self.parent.cache.saveDistUpgrade()
for pkg in self.parent.cache:
try:
if pkg.marked_install:
@ -174,8 +175,8 @@ class UpdateManagerDbusController(dbus.service.Object):
pkgs_upgrade.append(pkg.name)
elif pkg.marked_delete:
pkgs_remove.append(pkg.name)
elif pkg.is_upgradable :
pkgs_upgrade.append(pkg.name)
# elif pkg.is_upgradable :
# pkgs_upgrade.append(pkg.name)
except Exception as e:
logging.error(e)
if pkgs_install or pkgs_upgrade or pkgs_remove: