]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cachefile.cc
fail instead of segfault on unreadable config files
[apt.git] / apt-pkg / cachefile.cc
index 0e21929731dff13cc56dcd4a3400cd6ca664973c..b5f32fc293cb2493619cce8326ca3cbd28bd0ea0 100644 (file)
@@ -173,6 +173,9 @@ bool pkgCacheFile::BuildPolicy(OpProgress * /*Progress*/)
 /* */
 bool pkgCacheFile::BuildDepCache(OpProgress *Progress)
 {
+   if (BuildCaches(Progress, false) == false)
+      return false;
+
    std::unique_ptr<pkgDepCache> DCache;
    if (this->DCache != NULL)
       return true;