summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2022-09-28 15:13:12 +0000
committerJulian Andres Klode <jak@debian.org>2022-09-28 15:13:12 +0000
commitf8497bb5e443ef196e5d1bee43cc82ee57a8e3dd (patch)
treefbac0c4a04ca633431b69f59f62c655780627c50 /apt-pkg/algorithms.cc
parent8d3540402799860eb76cd112d82efb4275f19e46 (diff)
parent5f5a8deedffac3cdeeb2f178d910d3759d366e8e (diff)
Merge branch 'pu/phased-updates-fixes-2022-09-23' into 'main'
phased update improvements See merge request apt-team/apt!262
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;