]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
cleanup the debian/rules file a bit
[apt.git] / apt-pkg / indexrecords.cc
index 3bde7437d9944a1c6c4dd2fb312833673f68ae49..eb9a368662e9f8b192a8513ce9db6fdc6ef1c2fd 100644 (file)
@@ -39,6 +39,11 @@ const indexRecords::checkSum *indexRecords::Lookup(const string MetaKey)
    return Entries[MetaKey];
 }
 
+bool indexRecords::Exists(string const &MetaKey) const
+{
+   return Entries.count(MetaKey) == 1;
+}
+
 bool indexRecords::Load(const string Filename)                         /*{{{*/
 {
    FileFd Fd(Filename, FileFd::ReadOnly);