summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-25 02:42:55 +0000
committerMatt Wilson <msw@redhat.com>2000-07-25 02:42:55 +0000
commitbed8e78e9dcbd14454e1de15d15b7825e971e54a (patch)
tree71763e3e0804563cca04b7fe8cfac831bf50efdb /lilo.py
parent470e3adcc9e4145f12c7ddc98a47dd93e20c30d8 (diff)
downloadanaconda-bed8e78e9dcbd14454e1de15d15b7825e971e54a.tar.gz
anaconda-bed8e78e9dcbd14454e1de15d15b7825e971e54a.tar.xz
anaconda-bed8e78e9dcbd14454e1de15d15b7825e971e54a.zip
move all string access of headers to int constants
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lilo.py b/lilo.py
index 69e6b3240..451f45529 100644
--- a/lilo.py
+++ b/lilo.py
@@ -307,7 +307,8 @@ class LiloConfiguration:
kernelList.append((label, hdList['kernel'], ""))
for (label, kernel, tag) in kernelList:
- kernelTag = "-%s-%s%s" % (kernel['version'], kernel['release'], tag)
+ kernelTag = "-%s-%s%s" % (kernel[rpm.RPMTAG_VERSION],
+ kernel[rpm.RPMTAG_RELEASE], tag)
kernelFile = "/boot/vmlinuz" + kernelTag
try: