summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 14:21:35 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 14:21:35 +0100
commit47bb9aed818abafdb60d9fe917f5973dff7f31e8 (patch)
treef127a56c9978d0d99a78a4a541367cf6caccf86a /cmdline
parentdab5e407ea88a18eb3a93ecb81e288b259a39f36 (diff)
* cmdline/apt-get.cc:
- if the changelog downlaod failed, do not show the generic error but point to launchpad instead
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 4 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 /*{{{*/