]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cachefile.cc
Move sysconf(_SC_OPEN_MAX); out of the for() loop to avoid unneeded syscalls
[apt.git] / apt-pkg / cachefile.cc
index 0fd40106f677b1751d52adb353d0d5e3cefb710f..ea3d454806223943e2902ebef8e1eb2071ec44b7 100644 (file)
@@ -143,6 +143,9 @@ bool pkgCacheFile::BuildDepCache(OpProgress *Progress)
    if (DCache != NULL)
       return true;
 
+   if (BuildPolicy(Progress) == false)
+      return false;
+
    DCache = new pkgDepCache(Cache,Policy);
    if (_error->PendingError() == true)
       return false;