Do not download files if find_dl_candidates() fails
One reason why the function returns an error is some repo does not have any servers. Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
130db5cc9e
commit
aff69f43b1
1 changed files with 1 additions and 1 deletions
|
@ -787,7 +787,7 @@ static int download_files(alpm_handle_t *handle)
|
||||||
|
|
||||||
errors += find_dl_candidates(handle, &files);
|
errors += find_dl_candidates(handle, &files);
|
||||||
|
|
||||||
if(files) {
|
if(files && !errors) {
|
||||||
/* check for necessary disk space for download */
|
/* check for necessary disk space for download */
|
||||||
if(handle->checkspace) {
|
if(handle->checkspace) {
|
||||||
off_t *file_sizes;
|
off_t *file_sizes;
|
||||||
|
|
Loading…
Add table
Reference in a new issue