--- lib/libalpm/sync.c | 2 +- lib/libalpm/trans.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 2419cc69..bdfab635 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -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; } diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 939ab05a..e608555b 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -185,7 +185,7 @@ int SYMEXPORT alpm_trans_commit(alpm_handle_t *handle, alpm_list_t **data) } if(trans->add) { - if(_alpm_sync_load(handle, data) != 0) { + if(_alpm_sync_load(handle, data) == -1) { /* pm_errno is set by _alpm_sync_load() */ return -1; } -- 2.31.1