summaryrefslogtreecommitdiff
path: root/apt-private/private-update.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-07-08 16:06:56 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-07-08 16:06:56 +0200
commit7d1b93d94083a3856efc821bacd9e91f80bbf760 (patch)
tree7ef43941a22c71d8a16efa50e0015426e9d3e53c /apt-private/private-update.cc
parent521dd27dc33c8b2a6947a76872841f4254df4e58 (diff)
Only show packages as upgradable if the have a CandidateVer != 0
Closes: #753297
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_(