21 May
2021
21 May
'21
3:21 p.m.
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@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