diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-11-18 14:21:35 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-11-18 14:21:35 +0100 |
commit | 47bb9aed818abafdb60d9fe917f5973dff7f31e8 (patch) | |
tree | f127a56c9978d0d99a78a4a541367cf6caccf86a | |
parent | dab5e407ea88a18eb3a93ecb81e288b259a39f36 (diff) |
* cmdline/apt-get.cc:
- if the changelog downlaod failed, do not show the generic error
but point to launchpad instead
-rw-r--r-- | cmdline/apt-get.cc | 5 | ||||
-rw-r--r-- | debian/changelog | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index eb3ac425b..5a3275c15 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -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 /*{{{*/ diff --git a/debian/changelog b/debian/changelog index 3b2746e2d..e712d9144 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |