diff --git a/backend/SystemUpdater/backend/__init__.py b/backend/SystemUpdater/backend/__init__.py index c7c7cbb..58d15e0 100644 --- a/backend/SystemUpdater/backend/__init__.py +++ b/backend/SystemUpdater/backend/__init__.py @@ -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)