mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
sync: halt file discovery if repo has no servers
This avoids error spam when no servers are configured for a repo and a sync operation is performed: Proceed with installation? [Y/n] y :: Retrieving packages from testing... warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing warning: failed to retrieve some files from testing Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
dddd6a46a0
commit
6731d0a940
@ -796,6 +796,14 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas)
|
||||
for(i = handle->dbs_sync; i; i = i->next) {
|
||||
alpm_db_t *current = i->data;
|
||||
|
||||
if(!current->servers) {
|
||||
handle->pm_errno = ALPM_ERR_SERVER_NONE;
|
||||
_alpm_log(handle, ALPM_LOG_ERROR, "%s: %s\n",
|
||||
alpm_strerror(handle->pm_errno), current->treename);
|
||||
errors++;
|
||||
continue;
|
||||
}
|
||||
|
||||
for(j = handle->trans->add; j; j = j->next) {
|
||||
alpm_pkg_t *spkg = j->data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user