diff options
author | Allan McRae <allan@archlinux.org> | 2015-06-17 23:56:21 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-07-15 10:57:30 +1000 |
commit | 5782b8356c9b9d2c5e21694de22b1441277574b7 (patch) | |
tree | 59e279a33db5a46f21deefd15d962c882a78d7eb /src/pacman/conf.c | |
parent | e49abc9860cfe9470a5828d3bb0ad38fd57a0fad (diff) | |
download | pacman-5782b8356c9b9d2c5e21694de22b1441277574b7.tar.xz |
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/conf.c')
-rw-r--r-- | src/pacman/conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |