diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-21 13:31:18 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-22 10:33:48 -0500 |
commit | 361ed6a6001c41f08ee85a94d28ba5a7c79a6154 (patch) | |
tree | 5ea8baf9805307e46b480cd18021fdbdae3e8885 /src/pacman | |
parent | e4690232d61b8b7655df40feb417cf54c489d73c (diff) |
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>
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |