summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-02-13 13:58:40 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2024-02-13 14:13:56 +0100
commit26e0e9b76fb06afe5250eeb8e5b3d069d4793432 (patch)
treef2b0d51bbd68dad28b652f8a8141551c9b0cffb9 /apt-pkg
parent2845127968cda30be8423e1d3a24dae0e797bcc8 (diff)
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
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/upgrade.cc1
1 files changed, 0 insertions, 1 deletions
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++)