]> git.saurik.com Git - apt.git/commitdiff
Use descriptive URIs in 104 Warning messages
authorJulian Andres Klode <jak@debian.org>
Wed, 16 Mar 2016 17:31:26 +0000 (18:31 +0100)
committerJulian Andres Klode <jak@debian.org>
Wed, 16 Mar 2016 17:34:47 +0000 (18:34 +0100)
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

index c9f0e7f6ed6bbfb64fb226342db32fc7ee745eef..f901847f77477c2243603cb37da57466367c19c3 100644 (file)
@@ -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