Comment 4 for bug 1383789

Revision history for this message
Calvin Li (calvin-li-lt) wrote :

An examination of the outgoing HTTP requests for aptitude changelog vs. apt-get changelog shows that aptitude is missing a /pool in the URL:

No. Time Source Destination Protocol Length Info
    889 29.865225000 192.168.42.65 91.189.95.36 HTTP 220 GET /changelogs/main/p/pyyaml/pyyaml_3.11-1ubuntu0.1_changelog HTTP/1.1
    891 30.048039000 91.189.95.36 192.168.42.65 HTTP 592 HTTP/1.1 404 Not Found (text/html)
    957 39.885594000 192.168.42.65 91.189.95.36 HTTP 241 GET /changelogs/pool/main/p/pyyaml/pyyaml_3.11-1ubuntu0.1/changelog HTTP/1.1
    965 40.095237000 91.189.95.36 192.168.42.65 HTTP 3538 HTTP/1.1 200 OK (text/plain)

(first half is `aptitude changelog`, second half is `apt-get changelog`)

Looking through the Debian -> Ubuntu patches for 0.6.8 vs 0.6.11, the lines

--- a/src/generic/apt/pkg_changelog.cc
+++ b/src/generic/apt/pkg_changelog.cc
@@ -545,7 +545,7 @@

               // WATCH: apt/cmdline/apt-get.cc(DownloadChangelog)
               string server = aptcfg->Find("APT::Changelogs::Server",
- "http://packages.debian.org/changelogs");
+ "http://changelogs.ubuntu.com/changelogs");
              string path = cw::util::ssprintf("pool/%s/%s/%s/%s_%s",
                                              realsection.c_str(),
                                              prefix.c_str(),

got changed to

--- aptitude-0.6.11.orig/src/generic/apt/pkg_changelog.cc
+++ aptitude-0.6.11/src/generic/apt/pkg_changelog.cc
@@ -545,7 +545,7 @@ namespace aptitude

               // WATCH: apt/cmdline/apt-get.cc(DownloadChangelog)
               string server = aptcfg->Find("APT::Changelogs::Server",
- "http://metadata.ftp-master.debian.org/changelogs");
+ "http://changelogs.ubuntu.com/changelogs/pool");
              string path = cw::util::ssprintf("%s/%s/%s/%s_%s",
                                              realsection.c_str(),
                                              prefix.c_str(),

Apparently the new patch doesn't work?