[pacman-dev] [PATCH] libalpm: call retry events for sig downlods
morganamilo
morganamilo at archlinux.org
Fri May 21 13:21:56 UTC 2021
Around the same time retry events were added, there was a patch to pass
sig download events to the frontend. The retry code was not updated to
account for this.
Signed-off-by: morganamilo <morganamilo at archlinux.org>
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 048cec5e..37e8ae34 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -446,7 +446,7 @@ static int curl_retry_next_server(CURLM *curlm, CURL *curl, struct dload_payload
fseek(payload->localf, 0, SEEK_SET);
}
- if(handle->dlcb && !payload->signature) {
+ if(handle->dlcb) {
alpm_download_event_retry_t cb_data;
cb_data.resume = allow_resume;
handle->dlcb(handle->dlcb_ctx, payload->remote_name, ALPM_DOWNLOAD_RETRY, &cb_data);
--
2.31.1
More information about the pacman-dev
mailing list