summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r--apt-pkg/algorithms.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 5869668cd..6131ecd11 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1380,8 +1380,7 @@ bool pkgProblemResolver::ResolveByKeepInternal()
pkgCache::PkgIterator Pkg = Ver.ParentPkg();
// It is not keepable
- if (Cache[Pkg].InstallVer == 0 ||
- Pkg->CurrentVer == 0)
+ if (Pkg->CurrentVer == 0)
continue;
if (not Cache[Pkg].Protect())