diff options
author | morganamilo <morganamilo@archlinux.org> | 2020-11-30 19:21:26 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-12-03 12:31:34 +0100 |
commit | 5c24f7dd11a241f6414e3ee6f95f224382ec27ce (patch) | |
tree | 561f5cb1031655fc8c2bd3d30584ea3784ac129c /lib/libalpm/db.h | |
parent | 08f4ae709ca00ec9b4c56d92d3cdd7de4e6effc2 (diff) | |
download | pacman-5c24f7dd11a241f6414e3ee6f95f224382ec27ce.tar.gz pacman-5c24f7dd11a241f6414e3ee6f95f224382ec27ce.tar.xz |
libalpm: set ret in download files
download_files never set ret on failiure, so even when downloading
fails, the transaction goes on to commit and error out.
:: Retrieving packages...
python-packaging-20.4-4-any.pkg.tar.zst failed to download
error: failed retrieving file 'python-packaging-20.4-4-any.pkg.tar.zst' from mirror.oldsql.cc : The requested URL returned error: 404
warning: failed to retrieve some files
(1/1) checking keys in keyring
(1/1) checking package integrity
error: failed to commit transaction (wrong or NULL argument passed)
Errors occurred, no packages were upgraded.
Also make the ret checking more consistent.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.h')
0 files changed, 0 insertions, 0 deletions