From 421807e1d38c58b776be0b20faed94c5316d38eb Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 16 Mar 2016 18:31:26 +0100 Subject: Use descriptive URIs in 104 Warning messages This makes the new GPG related warnings much nicer to read, for example, the second one here replaces the first one: W: gpgv:/var/lib/apt/lists/example.com_dists_stable_InRelease: Weak ... W: http://example.com/dists/stable/InRelease: Weak ... --- apt-pkg/acquire-worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index c9f0e7f6e..f901847f7 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -279,7 +279,7 @@ bool pkgAcquire::Worker::RunMessages() } // 104 Warning case 104: - _error->Warning("%s: %s", Itm->URI.c_str(), LookupTag(Message,"Message").c_str()); + _error->Warning("%s: %s", Itm->Owner->DescURI().c_str(), LookupTag(Message,"Message").c_str()); break; // 200 URI Start -- cgit v1.2.3