diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-11-06 14:02:40 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-11-06 14:04:49 -0500 |
commit | ec838af81058ac6fb1f30921bbdfab5c73e5d62f (patch) | |
tree | 8bc0f616332f68c5cf608f42edb3667d344e791a /packages.py | |
parent | 3badcd238a69f425fbff8e4b4064d2ceb1462657 (diff) | |
download | anaconda-ec838af81058ac6fb1f30921bbdfab5c73e5d62f.tar.gz anaconda-ec838af81058ac6fb1f30921bbdfab5c73e5d62f.tar.xz anaconda-ec838af81058ac6fb1f30921bbdfab5c73e5d62f.zip |
Avoid getting linux-base in the kernel list
Sometimes, rpm returns the same kernel as being installed more than once due
to it having been in the transaction more than once (#467822). Let's make
sure that if that happens, we don't make the silliness continue
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages.py b/packages.py index 1e1214c8c..371e10e37 100644 --- a/packages.py +++ b/packages.py @@ -298,6 +298,10 @@ def rpmKernelVersionList(rootPath = "/"): if v == "" or tag == "": log.warning("Unable to determine kernel type/version for %s-%s-%s.%s" %(h['name'], h['version'], h['release'], h['arch'])) continue + # rpm really shouldn't return the same kernel more than once... but + # sometimes it does (#467822) + if (v, h['arch'], tag) in versions: + continue versions.append( (v, h['arch'], tag) ) return versions |