]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
fix -Wmissing-field-initializers warnings
[apt.git] / apt-pkg / indexrecords.cc
index 6d89949a092d89fd1fea98536b0f3f408cdd6daf..f8097c3c62a29bd32246d5c72743b9f0044cf409 100644 (file)
@@ -27,6 +27,11 @@ string indexRecords::GetDist() const
    return this->Dist;
 }
 
+string indexRecords::GetSuite() const
+{
+   return this->Suite;
+}
+
 bool indexRecords::CheckDist(const string MaybeDist) const
 {
    return (this->Dist == MaybeDist
@@ -62,7 +67,7 @@ bool indexRecords::Load(const string Filename)                                /*{{{*/
    if (OpenMaybeClearSignedFile(Filename, Fd) == false)
       return false;
 
-   pkgTagFile TagFile(&Fd);
+   pkgTagFile TagFile(&Fd, Fd.Size());
    if (_error->PendingError() == true)
    {
       strprintf(ErrorText, _("Unable to parse Release file %s"),Filename.c_str());