]> git.saurik.com Git - apt.git/commitdiff
* cmdline/apt-get.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:21:35 +0000 (14:21 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 13:21:35 +0000 (14:21 +0100)
  - if the changelog downlaod failed, do not show the generic error
    but point to launchpad instead

cmdline/apt-get.cc
debian/changelog

index eb3ac425b052d01120b30a8a6823fca64c1392c6..5a3275c15b466c958d50750779f759047c91e4d8 100644 (file)
@@ -2891,7 +2891,10 @@ bool DownloadChangelog(CacheFile &CacheFile, pkgAcquire &Fetcher,
       return true;
 
    // error
-   return _error->Error("changelog download failed");
+   pkgRecords Recs(CacheFile);
+   pkgRecords::Parser &rec=Recs.Lookup(Ver.FileList());
+   string srcpkg = rec.SourcePkg().empty() ? Pkg.Name() : rec.SourcePkg();
+   return _error->Error("changelog for this version is not (yet) available; try https://launchpad.net/ubuntu/+source/%s/+changelog", srcpkg.c_str());
 }
                                                                        /*}}}*/
 // DisplayFileInPager - Display File with pager                                /*{{{*/
index 3b2746e2dca6555c506e92b9e05e2730a6bfc317..e712d91447efe832d57b3403d0565656e3e91752 100644 (file)
@@ -4,6 +4,9 @@ apt (0.8.9ubuntu1) UNRELEASED; urgency=low
   * merged lp:~mvo/apt/mvo, this brings two new commands:
     - apt-get download binary-pkgname to download a deb
     - apt-get changelog binary-pkgname to display the changelog
+  * cmdline/apt-get.cc:
+    - if the changelog downlaod failed, do not show the generic error
+      but point to launchpad instead
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 18 Nov 2010 09:58:08 +0100