X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/472a91553b98873d36b05cc9af1471510b22879c..2a49601f69e08f06fb2727d869d420daacdd09d5:/apt-pkg/indexrecords.cc?ds=sidebyside diff --git a/apt-pkg/indexrecords.cc b/apt-pkg/indexrecords.cc index 649b6059d..e37a78cfb 100644 --- a/apt-pkg/indexrecords.cc +++ b/apt-pkg/indexrecords.cc @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -57,7 +58,10 @@ bool indexRecords::Exists(string const &MetaKey) const bool indexRecords::Load(const string Filename) /*{{{*/ { - FileFd Fd(Filename, FileFd::ReadOnly); + FileFd Fd; + if (OpenMaybeClearSignedFile(Filename, Fd) == false) + return false; + pkgTagFile TagFile(&Fd, Fd.Size() + 256); // XXX if (_error->PendingError() == true) {