Blame SOURCES/BZ-1212506-running-kernel-epoch.patch

bb45c0
commit fefb6a732e0c15c73300858c3fa7d7e89e79d18f
bb45c0
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
bb45c0
Date:   Wed Mar 11 10:52:49 2015 +0100
bb45c0
bb45c0
    Make sure epoch is a string while checking for running kernel. BZ#1200159
bb45c0
bb45c0
diff --git a/yum/misc.py b/yum/misc.py
bb45c0
index 6850ae2..f72f028 100644
bb45c0
--- a/yum/misc.py
bb45c0
+++ b/yum/misc.py
bb45c0
@@ -818,6 +818,8 @@ def get_running_kernel_pkgtup(ts):
bb45c0
             e = h['epoch']
bb45c0
             if h['epoch'] is None:
bb45c0
                 e = '0'
bb45c0
+            else:
bb45c0
+                e = str(e)
bb45c0
             return (h['name'], h['arch'], e, h['version'], h['release'])
bb45c0
     
bb45c0
     return (None, None, None, None, None)