[yum-git] yum/misc.py
Jeremy Katz
katzj at linux.duke.edu
Tue Apr 15 00:07:12 UTC 2008
yum/misc.py | 4 ----
1 file changed, 4 deletions(-)
New commits:
commit c890eb8e6596bc0e7c94af5400cda064a19b034f
Author: Jeremy Katz <katzj at redhat.com>
Date: Mon Apr 14 19:58:50 2008 -0400
Fix finding the running kernel version (#441484)
Don't try to guess the way that uname -r matches up with kernel version
release and instead go on /boot/vmlinuz-$(uname -r) existing and then
mapping that to the package it came from
diff --git a/yum/misc.py b/yum/misc.py
index 40eb962..d710ad1 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -458,10 +458,6 @@ def get_running_kernel_version_release(ts):
if ver.endswith(s):
reduced = ver.replace(s, "")
- if reduced.find("-") != -1:
- (v, r) = reduced.split("-", 1)
- return (v, r)
-
# we've got nothing so far, so... we glob for the file that MIGHT have
# this kernels and then look up the file in our rpmdb
fns = glob.glob('/boot/vmlinuz*%s*' % ver)
More information about the Yum-cvs-commits
mailing list