dload: zero out pm_errno in curl_download_internal
commitb008193c1255639f724e3f6c62e50e6f2619e3c2
authorDave Reisner <dreisner@archlinux.org>
Wed, 17 Aug 2011 00:10:22 +0000 (16 20:10 -0400)
committerDan McGee <dan@archlinux.org>
Wed, 17 Aug 2011 00:37:14 +0000 (16 19:37 -0500)
treeb1bb514b26ae10fc9389909183741cba3be13af3
parentcea6d7eb13e548cd148e42faebd81f6f219b0fb0
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 <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c
lib/libalpm/sync.c