summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:04:51 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:10:47 +0100
commitda18eb10188a22fc1698a9b8466272f2826447db (patch)
tree93592b50027f59e04f66b48eb452de7a06eb0d52 /apt-pkg/acquire-worker.cc
parentddc9023474f079d995e07fc1cdffb81865fa9eb2 (diff)
Drop pkgAcquire::Item::ModifyRetries() ABI hack
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r--apt-pkg/acquire-worker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc
index 32fcde181..eff79215d 100644
--- a/apt-pkg/acquire-worker.cc
+++ b/apt-pkg/acquire-worker.cc
@@ -607,9 +607,9 @@ void pkgAcquire::Worker::HandleFailure(std::vector<pkgAcquire::Item *> const &It
for (auto const Owner : ItmOwners)
{
std::string NewURI;
- if (errTransient == true && Config->LocalOnly == false && Owner->ModifyRetries() != 0)
+ if (errTransient == true && Config->LocalOnly == false && Owner->Retries != 0)
{
- --Owner->ModifyRetries();
+ --Owner->Retries;
Owner->FailMessage(Message);
auto SavedDesc = Owner->GetItemDesc();
if (Log != nullptr)