From 9f572c0a6d13cc983a4f8880a3dee3a8e46604bb Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 27 Oct 2017 18:38:47 +0200 Subject: give the methods more metadata about the files to acquire We have quite a bit of metadata available for the files we acquire, but the methods weren't told about it and got just the URI. That is indeed fine for most, but to avoid methods trying to parse the metadata out of the provided URIs (and fail horribly in edgecases) we can just as well be nice and tell them stuff directly. --- apt-pkg/acquire-item.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt-pkg/acquire-item.h') diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 7705f3ccb..7f5f75195 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -27,6 +27,7 @@ #include #include +#include #include #ifndef APT_8_CLEANER_HEADERS @@ -241,6 +242,8 @@ class pkgAcquire::Item : public WeakPointable /*{{{*/ virtual std::string Custom600Headers() const; // Retries should really be a member of the Item, but can't be for ABI reasons APT_HIDDEN unsigned int &ModifyRetries(); + // this is more a hack than a proper external interface, hence hidden + APT_HIDDEN std::unordered_map &ModifyCustomFields(); /** \brief A "descriptive" URI-like string. * -- cgit v1.2.3