Re: [pacman-dev] [PATCH] Correctly report a download failiure for 404s

2019-06-27 Thread Allan McRae
On 12/6/19 2:43 am, morganamilo wrote: > Currently when caling alpm_trans_commit, if fetching a package restults > in a 404 (or other non 400 response code), the function returns -1 but > errno is never set. > > Thish patch sets errno to ALPM_ERR_RETRIEVE. > OK. Fixed typo in commit message.

[pacman-dev] [PATCH] Correctly report a download failiure for 404s

2019-06-11 Thread morganamilo
Currently when caling alpm_trans_commit, if fetching a package restults in a 404 (or other non 400 response code), the function returns -1 but errno is never set. Thish patch sets errno to ALPM_ERR_RETRIEVE. diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 05813c40..e5696bb0 100644