Commit aff69f43 authored by Anatol Pomozov's avatar Anatol Pomozov Committed by Allan McRae
Browse files

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's avatarAnatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
parent 130db5cc
......@@ -787,7 +787,7 @@ static int download_files(alpm_handle_t *handle)
errors += find_dl_candidates(handle, &files);
if(files) {
if(files && !errors) {
/* check for necessary disk space for download */
if(handle->checkspace) {
off_t *file_sizes;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment