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/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pacman/util.c') diff --git a/src/pacman/util.c b/src/pacman/util.c index 46620240..dd6e218a 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -113,6 +113,8 @@ int needs_root(void) return (config->op_s_clean || config->op_s_sync || (!config->group && !config->op_s_info && !config->op_q_list && !config->op_s_search && !config->print)); + case PM_OP_FILES: + return config->op_s_sync; default: return 0; } -- cgit v1.2.3-24-g4f1b