diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-05-01 18:21:41 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-05-01 16:39:24 +0000 |
| commit | 186ea76de09ef2f298f62d518a57d0567d2c0075 (patch) | |
| tree | ee7aa9cf7cb57a60772f2369eee048bc19174bf4 /apt-pkg/acquire-item.cc | |
| parent | 08c80e710f913ab56891d34c22dc93f890125952 (diff) | |
Avoid ABI break for transaction cancellation
Diffstat (limited to 'apt-pkg/acquire-item.cc')
| -rw-r--r-- | apt-pkg/acquire-item.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index b77bccc9d..55bb11ae4 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -872,6 +872,8 @@ std::string pkgAcquire::Item::ShortDesc() const /*{{{*/ /*}}}*/ void pkgAcquire::Item::Cancelled() /*{{{*/ { + if (auto Self = dynamic_cast<pkgAcqMetaClearSig*>(this)) + Self->DoCancelled(); } /*}}}*/ void pkgAcquire::Item::Finished() /*{{{*/ @@ -2014,7 +2016,7 @@ string pkgAcqMetaClearSig::Custom600Headers() const return Header; } /*}}}*/ -void pkgAcqMetaClearSig::Cancelled() /*{{{*/ +void pkgAcqMetaClearSig::DoCancelled() /*{{{*/ { if (TransactionManager->State == TransactionStarted) TransactionManager->AbortTransaction(); |
