From 0340069cc4709a18ba117090763d9f263de999a9 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 12 Mar 2016 20:29:04 +0100 Subject: show more details for "Hash Sum mismatch" errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users tend to report these errors with just this error message… not very actionable and hard to figure out if this is a temporary or 'permanent' mirror-sync issue or even the occasional apt bug. Showing the involved hashsums and modification times should help in triaging these kind of bugs – and eventually we will have less of them via by-hash. The subheaders aren't marked for translation for now as they are technical glibberish and probably easier to deal with if not translated. After all, our iconic "Hash Sum mismatch" is translated at least. These additions were proposed in #817240 by Peter Palfrader. --- apt-pkg/acquire-worker.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt-pkg/acquire-worker.cc') diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index ca1fd4836..c009f402e 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -439,7 +439,10 @@ bool pkgAcquire::Worker::RunMessages() else { if (isDoomedItem(Owner) == false) + { + Message.append("\nFailReason: HashSumMismatch"); Owner->Failed(Message,Config); + } if (Log != nullptr) Log->Fail(Owner->GetItemDesc()); } -- cgit v1.2.3