projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* apt-pkg/init.cc:
[apt.git]
/
apt-pkg
/
indexrecords.h
diff --git
a/apt-pkg/indexrecords.h
b/apt-pkg/indexrecords.h
index 468d2bd0fae6cea66b5030543b3d67452bf05bdc..5b532c1a528790e57727138490f9b46fa423e16d 100644
(file)
--- a/
apt-pkg/indexrecords.h
+++ b/
apt-pkg/indexrecords.h
@@
-12,6
+12,7
@@
#include <map>
#include <vector>
#include <map>
#include <vector>
+#include <ctime>
class indexRecords
{
class indexRecords
{
@@
-25,6
+26,8
@@
class indexRecords
string Dist;
string Suite;
string ExpectedDist;
string Dist;
string Suite;
string ExpectedDist;
+ time_t ValidUntil;
+
std::map<string,checkSum *> Entries;
public:
std::map<string,checkSum *> Entries;
public:
@@
-34,10
+37,13
@@
class indexRecords
// Lookup function
virtual const checkSum *Lookup(const string MetaKey);
// Lookup function
virtual const checkSum *Lookup(const string MetaKey);
+ /** \brief tests if a checksum for this file is available */
+ bool Exists(string const &MetaKey) const;
std::vector<std::string> MetaKeys();
virtual bool Load(string Filename);
string GetDist() const;
std::vector<std::string> MetaKeys();
virtual bool Load(string Filename);
string GetDist() const;
+ time_t GetValidUntil() const;
virtual bool CheckDist(const string MaybeDist) const;
string GetExpectedDist() const;
virtual ~indexRecords(){};
virtual bool CheckDist(const string MaybeDist) const;
string GetExpectedDist() const;
virtual ~indexRecords(){};