Don't install blacklisted system.base packages on update and new package install

This commit is contained in:
Ozan Çağlayan
2010-03-18 13:15:48 +00:00
parent acb57ef231
commit c239218579
+1
View File
@@ -276,6 +276,7 @@ def upgrade_base(A = set()):
if componentdb.has_component('system.base'):
systembase = set(componentdb.get_union_component('system.base').packages)
extra_installs = filter(lambda x: not installdb.has_package(x), systembase - set(A))
extra_installs = pisi.blacklist.exclude_from(extra_installs, ctx.const.blacklist)
if extra_installs:
ctx.ui.warning(_('Safety switch: Following packages in system.base will be installed: ') +
util.strlist(extra_installs))