From 327c272bb4540cee396f7e83ff98899876363a79 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 4 May 2012 13:56:55 +1000 Subject: Basic running of pacman -Qkk to check mtree files If a package has an mtree file, using pacman -Qkk will read that file and use it to perform more in depth package checking. Currently this only checks for file presence. Signed-off-by: Allan McRae --- src/pacman/query.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pacman/query.c') diff --git a/src/pacman/query.c b/src/pacman/query.c index f2d5f007..d8d0fc53 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -411,7 +411,11 @@ static int display(alpm_pkg_t *pkg) dump_pkg_changelog(pkg); } if(config->op_q_check) { - ret = check(pkg); + if(config->op_q_check == 1) { + ret = check_pkg_fast(pkg); + } else { + ret = check_pkg_full(pkg); + } } if(!config->op_q_info && !config->op_q_list && !config->op_q_changelog && !config->op_q_check) { -- cgit v1.2.3-54-g00ecf