libalpm: fix error when installing cached packages without signatures
With a repo using "SigLevel = Optional" and a package already downloaded into the cache, download_files() returns 1 (via _alpm_download) to indicate no files were downloaded. This causes installation of the package to fail. Explicitly check that download_files() returns -1 (error) rather than non-zero. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
72238aa046
commit
ef14c3380d
1 changed files with 1 additions and 1 deletions
|
@ -1128,7 +1128,7 @@ int _alpm_sync_load(alpm_handle_t *handle, alpm_list_t **data)
|
|||
uint64_t total_bytes = 0;
|
||||
alpm_trans_t *trans = handle->trans;
|
||||
|
||||
if(download_files(handle)) {
|
||||
if(download_files(handle) == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue