]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cachefile.cc
deal better with (very) small apt::cache-start values
[apt.git] / apt-pkg / cachefile.cc
index 3e3540bbd61aaa16623e8ca474a022aeae189864..6db0749d4d217cb5f550035a1f48479799c7da41 100644 (file)
@@ -221,7 +221,7 @@ bool pkgCacheFile::AddIndexFile(pkgIndexFile * const File)          /*{{{*/
       {
         {
            pkgCacheGenerator Gen(dynmmap, nullptr);
-           if (File->Merge(Gen, nullptr) == false)
+           if (Gen.Start() == false || File->Merge(Gen, nullptr) == false)
               return false;
         }
         Cache = new pkgCache(Map);