Blame SOURCES/BZ-1192239-update-minimal.patch

bb45c0
commit bfeae9135994630147c4d6af8679f95157a90d76
bb45c0
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
bb45c0
Date:   Fri Feb 14 13:54:30 2014 +0100
bb45c0
bb45c0
    Fix update-minimal traceback (#1048584) and ignoring updates.
bb45c0
bb45c0
diff --git a/yum/updateinfo.py b/yum/updateinfo.py
bb45c0
index 1cc207f..8d91f88 100644
bb45c0
--- a/yum/updateinfo.py
bb45c0
+++ b/yum/updateinfo.py
bb45c0
@@ -513,7 +513,7 @@ def update_minimal(base, extcmds=[]):
bb45c0
             if extcmds and not _match_sec_cmd(extcmds, name, notice):
bb45c0
                 continue
bb45c0
             if (not ndata and
bb45c0
-                not _ysp_should_filter_pkg(base, name, notice, used_map)):
bb45c0
+                not _ysp_should_filter_pkg(opts, name, notice, used_map)):
bb45c0
                 continue
bb45c0
             txmbrs.extend(base.update(name=pkgtup[0], arch=pkgtup[1],
bb45c0
                                       epoch=pkgtup[2],
bb45c0
diff --git a/yumcommands.py b/yumcommands.py
bb45c0
index c93faa1..4e3b730 100644
bb45c0
--- a/yumcommands.py
bb45c0
+++ b/yumcommands.py
bb45c0
@@ -4156,7 +4156,7 @@ class UpdateMinimalCommand(YumCommand):
bb45c0
 
bb45c0
         num = len(base.tsInfo)
bb45c0
         _upi.update_minimal(base, extcmds)
bb45c0
-        num -= len(base.tsInfo)
bb45c0
+        num = len(base.tsInfo) - num
bb45c0
         
bb45c0
         if num > 0:
bb45c0
             msg = '%d packages marked for minimal Update' % num