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