From 47bb9aed818abafdb60d9fe917f5973dff7f31e8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 18 Nov 2010 14:21:35 +0100 Subject: * cmdline/apt-get.cc: - if the changelog downlaod failed, do not show the generic error but point to launchpad instead --- cmdline/apt-get.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmdline') 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 /*{{{*/ -- cgit v1.2.3