Просмотр исходного кода

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 ...
Julian Andres Klode лет назад: 10
Родитель
Сommit
421807e1d3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apt-pkg/acquire-worker.cc

+ 1 - 1
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