]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
rework hashsum verification in the acquire system
[apt.git] / apt-pkg / indexrecords.cc
index de26178337b96e7344ddd4b57ac8bde711d684f7..c26868cac3d22a73ca036fbbb393597344580565 100644 (file)
@@ -73,7 +73,7 @@ APT_PURE indexRecords::checkSum *indexRecords::Lookup(const string MetaKey)
 
 APT_PURE bool indexRecords::Exists(string const &MetaKey) const
 {
-   return Entries.count(MetaKey) == 1;
+   return Entries.find(MetaKey) != Entries.end();
 }
 
 bool indexRecords::Load(const string Filename)                         /*{{{*/