全盘升级进行saveDistUpgrade
This commit is contained in:
parent
89400a1df5
commit
f8c21f76c4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue