summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-03-15 11:40:10 +0100
committerJulian Andres Klode <jak@debian.org>2016-03-15 12:33:21 +0100
commit8c9b7725c3d89461e78061aff4bc644cdb237fe7 (patch)
treea8430bf24a17fe32da73a4fc80801b6664347046 /methods
parent08fd77e83528fd03795524adf76e359ae2b56e06 (diff)
downloadapt-8c9b7725c3d89461e78061aff4bc644cdb237fe7.tar.gz
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.
Diffstat (limited to 'methods')
-rw-r--r--methods/aptmethod.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/methods/aptmethod.h b/methods/aptmethod.h
index 7f7f31dba..f8a68c92b 100644
--- a/methods/aptmethod.h
+++ b/methods/aptmethod.h
@@ -34,6 +34,14 @@ public:
return true;
}
+ void Warning(const char *Format,...)
+ {
+ va_list args;
+ va_start(args,Format);
+ PrintStatus("104 Warning", Format, args);
+ va_end(args);
+ }
+
aptMethod(char const * const Binary, char const * const Ver, unsigned long const Flags) :
pkgAcqMethod(Ver, Flags), Binary(Binary)
{}