summaryrefslogtreecommitdiff
path: root/apt-private/private-update.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-update.cc')
-rw-r--r--apt-private/private-update.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc
index 0f2f7a8da..860d84b86 100644
--- a/apt-private/private-update.cc
+++ b/apt-private/private-update.cc
@@ -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_(