[pacman-dev] [PATCH] Remove a pm_errno = 0 line

Nagy Gabor ngaba at bibl.u-szeged.hu
Wed Feb 8 23:04:24 EST 2012


In the download code a successful package-download could reset the previously
set pm_errno to 0, which is unwanted.

Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
 lib/libalpm/dload.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 9b57b97..8e754f1 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -388,7 +388,6 @@ static int curl_download_internal(struct dload_payload *payload,
 	/* shortcut to our handle within the payload */
 	alpm_handle_t *handle = payload->handle;
 	CURL *curl = get_libcurl_handle(handle);
-	handle->pm_errno = 0;
 
 	payload->tempfile_openmode = "wb";
 	if(!payload->remote_name) {
-- 
1.7.9



More information about the pacman-dev mailing list