From 8c9b7725c3d89461e78061aff4bc644cdb237fe7 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 15 Mar 2016 11:40:10 +0100 Subject: apt-pkg/acquire-worker.cc: Introduce 104 Warning message This can be used by workers to send warnings to the main program. The messages will be passed to _error->Warning() by APT with the URI prepended. We are not going to make that really public now, as the interface might change a bit. --- apt-pkg/acquire-worker.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apt-pkg') diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index 37804c67a..c9f0e7f6e 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -277,6 +277,10 @@ bool pkgAcquire::Worker::RunMessages() } break; } + // 104 Warning + case 104: + _error->Warning("%s: %s", Itm->URI.c_str(), LookupTag(Message,"Message").c_str()); + break; // 200 URI Start case 200: -- cgit v1.2.3-70-g09d2