]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debindexfile.cc
update size of dynamic MMap as we write in from the outside
[apt.git] / apt-pkg / deb / debindexfile.cc
index af1209ccb9124bd0acda0b798553b6d093a3ac27..9961b5ae44178e135c8a2e78b3968db1b43c0281 100644 (file)
@@ -324,8 +324,14 @@ bool debPackagesIndex::Merge(pkgCacheGenerator &Gen,OpProgress *Prog) const
       return _error->Error("Problem with MergeList %s",PackageFile.c_str());
 
    // Check the release file
-   string ReleaseFile = debReleaseIndex(URI,Dist).MetaIndexFile("Release");
+   string ReleaseFile = debReleaseIndex(URI,Dist).MetaIndexFile("InRelease");
+   bool releaseExists = false;
    if (FileExists(ReleaseFile) == true)
+      releaseExists = true;
+   else
+      ReleaseFile = debReleaseIndex(URI,Dist).MetaIndexFile("Release");
+
+   if (releaseExists == true || FileExists(ReleaseFile) == true)
    {
       FileFd Rel(ReleaseFile,FileFd::ReadOnly);
       if (_error->PendingError() == true)