libalpm: call retry events for sig downlods

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>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
morganamilo 2021-05-21 14:21:56 +01:00 committed by Allan McRae
parent 2e83a52205
commit 238109760d

View file

@ -447,7 +447,7 @@ static int curl_retry_next_server(CURLM *curlm, CURL *curl, struct dload_payload
fseek(payload->localf, 0, SEEK_SET); fseek(payload->localf, 0, SEEK_SET);
} }
if(handle->dlcb && !payload->signature) { if(handle->dlcb) {
alpm_download_event_retry_t cb_data; alpm_download_event_retry_t cb_data;
cb_data.resume = payload->allow_resume; cb_data.resume = payload->allow_resume;
handle->dlcb(handle->dlcb_ctx, payload->remote_name, ALPM_DOWNLOAD_RETRY, &cb_data); handle->dlcb(handle->dlcb_ctx, payload->remote_name, ALPM_DOWNLOAD_RETRY, &cb_data);