summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-05-01 16:12:11 +0000
committerJulian Andres Klode <jak@debian.org>2026-05-01 16:12:11 +0000
commit008936877d805ee2c1b7c8f6d22248bfdce4d05b (patch)
tree8304452c120d49c678b19f624a165f8b8ff5245f /apt-pkg/acquire.cc
parent9727b9faf3e033cd9c1c3fbd57df7017faf3cd5e (diff)
parent244bf4d107d7f17eb7a21b036717a161618387ae (diff)
Merge branch 'apt-update-stuck' into 'main'
Fix issues that can lead to "apt update" being stuck with outdated lists See merge request apt-team/apt!559
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r--apt-pkg/acquire.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc
index 95b6391cd..62d477f95 100644
--- a/apt-pkg/acquire.cc
+++ b/apt-pkg/acquire.cc
@@ -794,6 +794,10 @@ stop:
for (Queue *I = Queues; I != 0; I = I->Next)
I->Shutdown(false);
+ if (WasCancelled)
+ for (ItemIterator I = Items.begin(); I != Items.end(); ++I)
+ (*I)->Cancelled();
+
// Shut down the items
for (auto &Item : Items)
Item->Finished();