From 1a22e16a1ebf08243c1836e1c593cb966cae4850 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 3 Dec 2013 21:49:02 +0100 Subject: proof-of-concept for fixing debian #731102 --- apt-pkg/indexrecords.cc | 5 +++++ apt-pkg/indexrecords.h | 1 + apt-pkg/metaindex.h | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'apt-pkg') diff --git a/apt-pkg/indexrecords.cc b/apt-pkg/indexrecords.cc index 8a72ca151..f8097c3c6 100644 --- a/apt-pkg/indexrecords.cc +++ b/apt-pkg/indexrecords.cc @@ -27,6 +27,11 @@ string indexRecords::GetDist() const return this->Dist; } +string indexRecords::GetSuite() const +{ + return this->Suite; +} + bool indexRecords::CheckDist(const string MaybeDist) const { return (this->Dist == MaybeDist diff --git a/apt-pkg/indexrecords.h b/apt-pkg/indexrecords.h index a98b939bc..d003ec0fa 100644 --- a/apt-pkg/indexrecords.h +++ b/apt-pkg/indexrecords.h @@ -46,6 +46,7 @@ class indexRecords virtual bool Load(std::string Filename); std::string GetDist() const; + std::string GetSuite() const; time_t GetValidUntil() const; virtual bool CheckDist(const std::string MaybeDist) const; std::string GetExpectedDist() const; diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h index 5783735ff..0c2600c3a 100644 --- a/apt-pkg/metaindex.h +++ b/apt-pkg/metaindex.h @@ -48,7 +48,8 @@ class metaIndex virtual ~metaIndex() { if (Indexes == 0) return; - for (std::vector::iterator I = (*Indexes).begin(); I != (*Indexes).end(); ++I) + for (std::vector::iterator I = (*Indexes).begin(); + I != (*Indexes).end(); ++I) delete *I; delete Indexes; } -- cgit v1.2.3-70-g09d2