From 361ed6a6001c41f08ee85a94d28ba5a7c79a6154 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 21 Sep 2011 13:31:18 -0500 Subject: 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 --- src/pacman/conf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 3558dca3..337522b8 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -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) { -- cgit v1.2.3-70-g09d2