summaryrefslogtreecommitdiff
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-06-17 23:56:21 +1000
committerAllan McRae <allan@archlinux.org>2015-07-15 10:57:30 +1000
commit5782b8356c9b9d2c5e21694de22b1441277574b7 (patch)
tree59e279a33db5a46f21deefd15d962c882a78d7eb /src/pacman/util.c
parente49abc9860cfe9470a5828d3bb0ad38fd57a0fad (diff)
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 <allan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c2
1 files changed, 2 insertions, 0 deletions
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;
}