diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-05-22 17:36:09 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-05-22 17:36:09 +0200 |
commit | a2fdb57ff93c1b1f35b796c3c99878ec3ae54a06 (patch) | |
tree | cb25d89bff41de4fe35366a8ec6033844df989ff /apt-pkg/indexrecords.h | |
parent | ffa8189668e54572318d1834881e470c238f3642 (diff) |
Add APT::Acquire::$(host)::By-Hash=1 knob, add Acquire-By-Hash to Release file
The by-hash can be configured on a per-hostname basis and a Release
file can indicate that it has by-hash support via a new flag.
The location of the hash now matches the AptByHash spec
Diffstat (limited to 'apt-pkg/indexrecords.h')
-rw-r--r-- | apt-pkg/indexrecords.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/indexrecords.h b/apt-pkg/indexrecords.h index 14b03c4d5..bb0fd5564 100644 --- a/apt-pkg/indexrecords.h +++ b/apt-pkg/indexrecords.h @@ -26,12 +26,15 @@ class indexRecords public: struct checkSum; std::string ErrorText; + // dpointer (for later9 + void * d; protected: std::string Dist; std::string Suite; std::string ExpectedDist; time_t ValidUntil; + bool SupportsAcquireByHash; std::map<std::string,checkSum *> Entries; @@ -49,6 +52,7 @@ class indexRecords virtual bool Load(std::string Filename); std::string GetDist() const; std::string GetSuite() const; + bool GetSupportsAcquireByHash() const; time_t GetValidUntil() const; virtual bool CheckDist(const std::string MaybeDist) const; std::string GetExpectedDist() const; |