Blame SOURCES/BZ-1267897-exclude-dups-from-security-updates.patch
|
|
5e9bef |
diff -up yum-3.4.3/yum/updateinfo.py.old yum-3.4.3/yum/updateinfo.py
|
|
|
5e9bef |
--- yum-3.4.3/yum/updateinfo.py.old 2016-03-22 12:12:51.413858074 +0100
|
|
|
5e9bef |
+++ yum-3.4.3/yum/updateinfo.py 2016-03-22 12:14:56.392798309 +0100
|
|
|
5e9bef |
@@ -411,13 +411,17 @@ def exclude_updates(base, filters=None):
|
|
|
5e9bef |
name2tup = _get_name2oldpkgtup(base)
|
|
|
5e9bef |
|
|
|
5e9bef |
cnt = 0
|
|
|
5e9bef |
+ pkgs_to_del = []
|
|
|
5e9bef |
for pkg in pkgs:
|
|
|
5e9bef |
name = pkg.name
|
|
|
5e9bef |
if (name not in name2tup or
|
|
|
5e9bef |
not _ysp_should_keep_pkg(opts, name2tup[name], md_info, used_map)):
|
|
|
5e9bef |
- ysp_del_pkg(pkg)
|
|
|
5e9bef |
+ pkgs_to_del.append(pkg.name)
|
|
|
5e9bef |
continue
|
|
|
5e9bef |
cnt += 1
|
|
|
5e9bef |
+ if pkgs_to_del:
|
|
|
5e9bef |
+ for p in base.doPackageLists(pkgnarrow='available', patterns=pkgs_to_del, showdups=True).available:
|
|
|
5e9bef |
+ ysp_del_pkg(p)
|
|
|
5e9bef |
|
|
|
5e9bef |
_ysp_chk_used_map(used_map, lambda x: base.verbose_logger.warn("%s", x))
|
|
|
5e9bef |
|