diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-07-13 16:03:06 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-07-13 16:16:55 +0200 |
commit | 363e3a4c91da353d99cf1af3d5089c9455d461de (patch) | |
tree | c8da4b842868f88dde44f88530a5d18699e6469a | |
parent | 544d81a26f8c97a2a45262aecbaef4a5b43fb325 (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.cc | 2 |
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; } } |