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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 09fd78329..26d8c71c2 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1359,8 +1359,8 @@ bool pkgProblemResolver::ResolveByKeepInternal()
if (Cache[Pkg].InstallVer == 0 ||
Pkg->CurrentVer == 0)
continue;
-
- if (not Cache[I].Protect())
+
+ if (not Cache[Pkg].Protect())
{
if (Debug == true)
clog << " Keeping Package " << Pkg.FullName(false) << " due to " << Start.DepType() << endl;