config parsing: add note if libcurl disabled and no XferCommand

Just a helpful warning for those users in this unenviable position.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-09-21 13:31:18 -05:00
parent e4690232d6
commit 361ed6a600
1 changed files with 2 additions and 0 deletions

View File

@ -591,6 +591,8 @@ static int setup_libalpm(void)
if(config->xfercommand) {
alpm_option_set_fetchcb(handle, download_with_xfercommand);
} else if(!(alpm_capabilities() & ALPM_CAPABILITY_DOWNLOADER)) {
pm_printf(ALPM_LOG_WARNING, _("no '%s' configured"), "XferCommand");
}
if(config->totaldownload) {