]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-update.cc
cacheset: Prefer the depcache over the policy again
[apt.git] / apt-private / private-update.cc
index 73a82e988f2e468a3ded13e413d03cba44511b46..1323771f0b8747417f23739f38070b51249965b5 100644 (file)
@@ -84,7 +84,8 @@ bool DoUpdate(CommandLine &CmdL)
    if (_config->FindB("APT::Cmd::Show-Update-Stats", false) == true)
    {
       int upgradable = 0;
-      Cache.Open();
+      if (Cache.Open() == false)
+         return false;
       for (pkgCache::PkgIterator I = Cache->PkgBegin(); I.end() != true; ++I)
       {
          pkgDepCache::StateCache &state = Cache[I];