Merge branch 'backend_manual' of gitlab2.kylin.com:kylinos-src/update-manager-group/kylin-system-updater into backend_manual
This commit is contained in:
commit
31a4c54946
|
@ -106,8 +106,10 @@ class UpdateEssentialItem():
|
||||||
|
|
||||||
def check_white(self,remove_pkgs):
|
def check_white(self,remove_pkgs):
|
||||||
logging.info("Check: remove pkg in White Packages...")
|
logging.info("Check: remove pkg in White Packages...")
|
||||||
for pkg in remove_pkgs:
|
new_upgrade_list = list(set(remove_pkgs) & set(self.remove_white))
|
||||||
if pkg in self.remove_white:
|
|
||||||
|
for pkg in new_upgrade_list:
|
||||||
|
if pkg in remove_pkgs:
|
||||||
logging.info("%s will be remove in remove pkg...",pkg)
|
logging.info("%s will be remove in remove pkg...",pkg)
|
||||||
remove_pkgs.remove(pkg)
|
remove_pkgs.remove(pkg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue