From 26e0e9b76fb06afe5250eeb8e5b3d069d4793432 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 13 Feb 2024 13:58:40 +0100 Subject: For phasing, check if current version is a security update, not just previous ones We only considered an update a security update if a previous update is a security update but not the update in question itself. LP: #2051181 --- apt-pkg/upgrade.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'apt-pkg') diff --git a/apt-pkg/upgrade.cc b/apt-pkg/upgrade.cc index 994a05859..c7e566a55 100644 --- a/apt-pkg/upgrade.cc +++ b/apt-pkg/upgrade.cc @@ -40,7 +40,6 @@ struct PhasedUpgrader // Advance to first version < our version while (OtherVer->ID != Ver->ID) ++OtherVer; - ++OtherVer; // Iterate over all versions < our version for (; !OtherVer.end() && (Installed.end() || OtherVer->ID != Installed->ID); OtherVer++) -- cgit v1.2.3-70-g09d2