优化删除软件包的白名单

This commit is contained in:
wangsong 2022-09-26 16:58:07 +08:00
parent 03c8b38c31
commit 02a3ef87cc
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,6 @@ class InstallBackend():
#计算解决依赖关系
self._make_problem_resolver(self.cache,pkgs_install,pkgs_upgrade,self.upgrade_data.adjust_pkgs)
pkgs_install,pkgs_upgrade,pkgs_remove,pkgs_downgrade = self._get_mark_from_cache(self.cache,self.upgrade_data.adjust_pkgs,self.action_mode)
self.update_essential.check_white(pkgs_remove)
else:
# 使用全盘升级 全盘使用dist-upgrade
if self.cache.get_changes():
@ -255,6 +253,8 @@ class InstallBackend():
self.cache._depcache.upgrade(True)
pkgs_install,pkgs_upgrade,pkgs_remove,pkgs_downgrade = self._get_mark_from_cache(self.cache,self.upgrade_data.adjust_pkgs,self.action_mode)
logging.warning("ProblemResolver of the deletion package list:%s",str(pkgs_remove))
self.update_essential.check_white(pkgs_remove)
logging.info("RESOLVER install:%d , upgrade:%d remove:%d pkgs_downgrade:%d",len(pkgs_install),len(pkgs_upgrade),\
len(pkgs_remove),len(pkgs_downgrade))
is_remove_pkgs = len(pkgs_remove) != 0