update manager should cache changelog information by url

Bug #582432 reported by lavinog
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: update-manager

Currently update-manager will download the same changelogs multiple times if there are multiple packages with the same changelog.

Example:
Today I started wireshark to capture packets.
Started update manager
The first package listed was apt and it downloaded the changelog automatically
wireshark caught this request:
48 8.591803 192.168.1.104 91.189.90.132 HTTP GET /changelogs/pool/main/a/apt/apt_0.7.25.3ubuntu9/NEWS.Debian HTTP/1.1
63 8.923160 192.168.1.104 91.189.90.132 HTTP GET /changelogs/pool/main/a/apt/apt_0.7.25.3ubuntu9/changelog HTTP/1.1

Then I selected the next package: apt-transport-https
wireshark reported:
95 13.335957 192.168.1.104 91.189.90.132 HTTP GET /changelogs/pool/main/a/apt/apt_0.7.25.3ubuntu9/NEWS.Debian HTTP/1.1
110 13.665300 192.168.1.104 91.189.90.132 HTTP GET /changelogs/pool/main/a/apt/apt_0.7.25.3ubuntu9/changelog HTTP/1.1

The next package: apt-utils
144 17.995672 192.168.1.104 91.189.90.132 HTTP GET /changelogs/pool/main/a/apt/apt_0.7.25.3ubuntu9/NEWS.Debian HTTP/1.1
159 18.331389 192.168.1.104 91.189.90.132 HTTP GET /changelogs/pool/main/a/apt/apt_0.7.25.3ubuntu9/changelog HTTP/1.1

This is a waste of bandwidth and server resources.
update-manager could cache each changelog in a dictionary by url key.
Doing this could greatly reduce the number of requests the changelog server receives.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: update-manager 1:0.134.8
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Tue May 18 13:15:52 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100312)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager

Related branches

Revision history for this message
lavinog (lavinog) wrote :
C de-Avillez (hggdh2)
Changed in update-manager (Ubuntu):
importance: Undecided → Wishlist
Robert Roth (evfool)
Changed in update-manager (Ubuntu):
status: New → Triaged
Robert Roth (evfool)
Changed in update-manager (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Robert Roth (evfool)
Robert Roth (evfool)
Changed in update-manager (Ubuntu):
status: In Progress → Triaged
assignee: Robert Roth (evfool) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers