Merge lp:~evfool/update-manager/changelogs into lp:update-manager
Status: | Merged |
---|---|
Merged at revision: | 2228 |
Proposed branch: | lp:~evfool/update-manager/changelogs |
Merge into: | lp:update-manager |
Diff against target: |
123 lines (+27/-11) 3 files modified
DistUpgrade/DistUpgradeViewGtk3.py (+1/-2) UpdateManager/Core/MyCache.py (+24/-8) debian/control (+2/-1) |
To merge this branch: | bzr merge lp:~evfool/update-manager/changelogs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Approve | ||
Review via email: mp+74328@code.launchpad.net |
Description of the change
Implemented changelog and NEWS.Debian caching using httplib2. The httplib2 dependency is already pulled in anyway (ubuntu-desktop depends on software-center depends on python-
So the branch does the following: when a changelog/news is downloaded, it caches it using httplib2's file-based cache in $XDG_CACHE_
This speeds up update-manager when reading through the changelogs (usually there are many packages updatable from the same source package, so having the same changelog), and reduces internet usage.
[1] http://
Many thanks for this branch! I merged it with a tiny tweak that explains that httplib2 sets headers.status to 200 even if its a 304 not modified response in the http header (which confused me initially as I thought that we would have to handle both headers.status != 200 and != 304).
Thanks!
Michael