[Yum-devel] [PATCH] The kernel packages are special, so skip normal processing. BZ 678969

James Antill james at and.org
Mon Feb 21 19:28:53 UTC 2011


---
 yum/__init__.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index 4d185ff..d29f426 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1029,6 +1029,11 @@ class YumBase(depsolve.Depsolve):
         for txmbr in txmbrs:
             if kern_pkgtup is not None and txmbr.pkgtup == kern_pkgtup:
                 pass
+            elif kern_pkgtup is not None and txmbr.name == kern_pkgtup[0]:
+                #  We don't care if they've explicitly set protected on the
+                # kernel package. Because we don't allow you to uninstall the
+                # running one so it has _special_ semantics anyway.
+                continue
             elif txmbr.name not in protected:
                 continue
             if txmbr.name not in bad_togo:
-- 
1.7.3.4



More information about the Yum-devel mailing list