From 5782b8356c9b9d2c5e21694de22b1441277574b7 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 17 Jun 2015 23:56:21 +1000 Subject: Prototype pacman files database operations Add the -F/--files operations, -s/--sync support and nd provide dummy functions for -s/--search, -l/-list and -o/--owns. Signed-off-by: Allan McRae --- src/pacman/conf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pacman/conf.c') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index ccf8183d..e1997435 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -729,6 +729,10 @@ static int setup_libalpm(void) alpm_option_set_questioncb(handle, cb_question); alpm_option_set_progresscb(handle, cb_progress); + if(config->op == PM_OP_FILES) { + alpm_option_set_dbext(handle, ".files"); + } + config->logfile = config->logfile ? config->logfile : strdup(LOGFILE); ret = alpm_option_set_logfile(handle, config->logfile); if(ret != 0) { -- cgit v1.2.3-24-g4f1b