From e22aa23c8f5adb0fd4b7ccbee480a4906ede0346 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 16 Nov 2010 16:54:30 +1000 Subject: Add configuration option to control disk space checking Disk space checking is likely to be an unnecessary bottleneck to people with reasonable partition sizes so add a configuration option to allow it to be disabled/enabled as wanted. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- src/pacman/pacman.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pacman') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 4239667e..700b74db 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -956,6 +956,8 @@ static int _parse_options(char *key, char *value) } else if(strcmp(key, "TotalDownload") == 0) { config->totaldownload = 1; pm_printf(PM_LOG_DEBUG, "config: totaldownload\n"); + } else if(strcmp(key, "CheckSpace") == 0) { + alpm_option_set_checkspace(1); } else { pm_printf(PM_LOG_ERROR, _("directive '%s' without value not recognized\n"), key); return(1); -- cgit v1.2.3-70-g09d2