Bug 78636

Summary: Hawkey updates don't keep old kernel versions installed
Product: PackageKit Reporter: Kalev Lember <kalevlember>
Component: backend-yumAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: hif: Reimplement multiple kernel package installation

Description Kalev Lember 2014-05-12 20:56:59 UTC
The hawkey / hif backend has code to keep the last 3 kernel versions installed, but it seems to have stopped working at some point in the past. Not sure how it is on F20, but I would guess it's broken there as well.
Comment 1 Kalev Lember 2014-05-12 21:06:21 UTC
Created attachment 98944 [details] [review]
hif: Reimplement multiple kernel package installation

We had existing code that allowed us to keep multiple kernel packages
installed, but this had broken at some point. This commit reimplements it using
current hawkey API, simplifying code and making it work again.

-- 

There's some small chance that this doesn't work with current PK. When I developed the code, rawhide didn't have libhif and I ended up doing it using a week old PK checkout, before the hawkey -> hif port. It rebased cleanly on top of current master, but please test that it actually builds before pushing :)

P.S. Happy to help review the libhif package if needed.
Comment 2 Richard Hughes 2014-05-13 08:27:58 UTC
Thanks, merged to master and 0.9.x

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.