-
Committer:
Allan McRae
-
Author(s):
morganamilo
-
Date:
2019-06-28 03:39:48 UTC
-
Revision ID:
git-v1:0e67ee55bd0f41ed8f62cc574c03ee27625be317
Correctly report a download failiure for 404s
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.
This patch sets errno to ALPM_ERR_RETRIEVE.
Signed-off-by: Allan McRae <allan@archlinux.org>