index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | morganamilo <morganamilo@gmail.com> | 2019-06-11 17:43:26 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-06-28 13:39:48 +1000 |
commit | 0e67ee55bd0f41ed8f62cc574c03ee27625be317 (patch) | |
tree | e73fb0342a0cf0cbedc7ab897e891315d25a442d /lib/libalpm | |
parent | 796c02af4c39b6f90f955d4764676711357c5db0 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 1 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 05813c40..e5696bb0 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -454,6 +454,7 @@ static int curl_download_internal(struct dload_payload *payload, if(payload->respcode >= 400) { payload->unlink_on_fail = 1; if(!payload->errors_ok) { + handle->pm_errno = ALPM_ERR_RETRIEVE; /* non-translated message is same as libcurl */ snprintf(error_buffer, sizeof(error_buffer), "The requested URL returned error: %ld", payload->respcode); |