From b008193c1255639f724e3f6c62e50e6f2619e3c2 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 16 Aug 2011 20:10:22 -0400 Subject: dload: zero out pm_errno in curl_download_internal This reverts some hacky behavior from 5fc3ec and resets the handle's pm_errno where it should be reset -- prior to each download. This prevents a transaction with a download from being aborted when a package is successfully grabbed from a secondary server. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/dload.c') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 5a63e488..9f1285d0 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -194,6 +194,7 @@ static int curl_download_internal(struct dload_payload *payload, struct sigaction sig_pipe[2], sig_int[2]; /* shortcut to our handle within the payload */ alpm_handle_t *handle = payload->handle; + handle->pm_errno = 0; if(!payload->filename) { payload->filename = get_filename(payload->fileurl); -- cgit v1.2.3-24-g4f1b