Blame SOURCES/BZ-1063181-upgrades-for-install-only.patch

d2a170
commit fada4b8dbd30d0335a9c07067a74dccec0abbedb
d2a170
Author: James Antill <james@and.org>
d2a170
Date:   Mon Sep 29 11:40:54 2014 -0400
d2a170
d2a170
    Don't look for upgrades for install only packages. BZ 1063181.
d2a170
d2a170
diff --git a/yum/__init__.py b/yum/__init__.py
d2a170
index a8a4e80..83a546a 100644
d2a170
--- a/yum/__init__.py
d2a170
+++ b/yum/__init__.py
d2a170
@@ -4654,6 +4654,9 @@ much more problems).
d2a170
             # don't have to.
d2a170
             return po.pkgtup in self.up.updating_dict
d2a170
 
d2a170
+        if self.allowedMultipleInstalls(po):
d2a170
+            return False
d2a170
+
d2a170
         for ipkg in ipkgs:
d2a170
             if po.verLE(ipkg):
d2a170
                 continue
d2a170
diff -up yum-3.4.3/test/simpleupdatetests.py.old yum-3.4.3/test/simpleupdatetests.py
d2a170
--- yum-3.4.3/test/simpleupdatetests.py.old	2014-09-30 11:01:39.000000000 +0200
d2a170
+++ yum-3.4.3/test/simpleupdatetests.py	2014-09-30 11:02:19.513283044 +0200
d2a170
@@ -1230,3 +1230,18 @@ class SimpleUpdateTests(OperationsTests)
d2a170
 
d2a170
         self.assert_(self._pkg2txmbr(foo11).reason == 'user')
d2a170
         self.assert_(self._pkg2txmbr(bar11).reason == 'blahg')
d2a170
+
d2a170
+    def testInstall_kernel_intermediate(self):
d2a170
+        #  Make sure we don't break this again...
d2a170
+        k11 = FakePackage('kernel', '1', '1', '0', 'i386')
d2a170
+        k12 = FakePackage('kernel', '1', '2', '0', 'i386')
d2a170
+        k13 = FakePackage('kernel', '1', '3', '0', 'i386')
d2a170
+        k14 = FakePackage('kernel', '1', '4', '0', 'i386')
d2a170
+        k15 = FakePackage('kernel', '1', '5', '0', 'i386')
d2a170
+
d2a170
+        res, msg = self.runOperation(['install', 'kernel-1-2'],
d2a170
+                                     [k11, k13, k14],
d2a170
+                                     [k11, k12, k13, k14, k15])
d2a170
+
d2a170
+        self.assert_(res=='ok', msg)
d2a170
+        self.assertResult((k11, k12, k13, k14))