]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
* apt-pkg/indexrecords.{cc,h}:
[apt.git] / apt-pkg / indexrecords.cc
index 1fc27b1a148b80215027a1658e665a0c376a1c29..9a9600531bae41218822c021bdbc329b36d5a8d1 100644 (file)
@@ -31,6 +31,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);