]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-update.cc
l10n: vi.po (636t): Update program translation
[apt.git] / apt-private / private-update.cc
index 0f2f7a8daf036beb711148f2a6b58782f4f30bf6..860d84b86ddfa7dc3af7225c86133c291323a7b0 100644 (file)
@@ -83,7 +83,7 @@ bool DoUpdate(CommandLine &CmdL)
       for (pkgCache::PkgIterator I = Cache->PkgBegin(); I.end() != true; ++I)
       {
          pkgDepCache::StateCache &state = Cache[I];
-         if (I->CurrentVer != 0 && state.Upgradable())
+         if (I->CurrentVer != 0 && state.Upgradable() && state.CandidateVer != NULL)
             upgradable++;
       }
       const char *msg = P_(