Blame SOURCES/BZ-1267897-exclude-dups-from-security-updates.patch

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