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

This commit is contained in:
luoxueyi 2022-10-14 15:20:43 +08:00
commit 31a4c54946
1 changed files with 4 additions and 2 deletions

View File

@ -106,8 +106,10 @@ class UpdateEssentialItem():
def check_white(self,remove_pkgs):
logging.info("Check: remove pkg in White Packages...")
for pkg in remove_pkgs:
if pkg in self.remove_white:
new_upgrade_list = list(set(remove_pkgs) & set(self.remove_white))
for pkg in new_upgrade_list:
if pkg in remove_pkgs:
logging.info("%s will be remove in remove pkg...",pkg)
remove_pkgs.remove(pkg)