diff options
author | David Kalnischkies <david@kalnischkies.de> | 2017-10-27 18:38:47 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2017-12-13 23:56:29 +0100 |
commit | 9f572c0a6d13cc983a4f8880a3dee3a8e46604bb (patch) | |
tree | 61fe09e98f3138ea2c530c93fd5e693aae0ad908 /apt-pkg/acquire-item.h | |
parent | dff555d40bb9776b5b809e06527e46b15e78736c (diff) |
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.
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r-- | apt-pkg/acquire-item.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <map> #include <string> +#include <unordered_map> #include <vector> #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<std::string, std::string> &ModifyCustomFields(); /** \brief A "descriptive" URI-like string. * |