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