summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-07-13 16:03:06 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2021-07-13 16:16:55 +0200
commit363e3a4c91da353d99cf1af3d5089c9455d461de (patch)
treec8da4b842868f88dde44f88530a5d18699e6469a
parent544d81a26f8c97a2a45262aecbaef4a5b43fb325 (diff)
pkgAcqIndex::CommonFailed: Set StatIdle before calling Init()
Enqueuing by calling Init(), and then resetting the status to idle means that the item can get enqueued twice if we call Cycle() from inside pkgAcquire::Run(). Reset the status to StatIdle before calling Init()
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 37a715390..7c23434ae 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -3205,8 +3205,8 @@ bool pkgAcqIndex::CommonFailed(std::string const &TargetURI,
{
if (CompressionExtensions.empty() == false)
{
- Init(TargetURI, Desc.Description, Desc.ShortDesc);
Status = StatIdle;
+ Init(TargetURI, Desc.Description, Desc.ShortDesc);
return true;
}
}