diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-05-01 16:12:11 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-05-01 16:12:11 +0000 |
| commit | 008936877d805ee2c1b7c8f6d22248bfdce4d05b (patch) | |
| tree | 8304452c120d49c678b19f624a165f8b8ff5245f /apt-pkg/acquire-item.h | |
| parent | 9727b9faf3e033cd9c1c3fbd57df7017faf3cd5e (diff) | |
| parent | 244bf4d107d7f17eb7a21b036717a161618387ae (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-item.h')
| -rw-r--r-- | apt-pkg/acquire-item.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 5861d48be..1182e415e 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -253,6 +253,9 @@ class APT_PUBLIC pkgAcquire::Item : public WeakPointable /*{{{*/ */ virtual std::string ShortDesc() const; + /** \brief Invoked by the worker when the download is cancelled before completion. */ + virtual void Cancelled(); + /** \brief Invoked by the worker when the download is completely done. */ virtual void Finished(); @@ -575,6 +578,7 @@ class APT_HIDDEN pkgAcqMetaClearSig final : public pkgAcqMetaIndex bool VerifyDone(std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override; void Done(std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override; + void Cancelled() override; void Finished() override; /** \brief Starts downloading the individual index files. |
