diff options
author | Allan McRae <allan@archlinux.org> | 2012-05-04 05:56:55 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 04:45:12 +0100 |
commit | 327c272bb4540cee396f7e83ff98899876363a79 (patch) | |
tree | 52ca78bc58dccb1ecd341473fdf9339e0ff7ad25 /src/pacman/query.c | |
parent | cfd9f1cc6948bc99d48e968efa4dd57f3375b93c (diff) | |
download | pacman-327c272bb4540cee396f7e83ff98899876363a79.tar.gz pacman-327c272bb4540cee396f7e83ff98899876363a79.tar.xz |
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 <allan@archlinux.org>
Diffstat (limited to 'src/pacman/query.c')
-rw-r--r-- | src/pacman/query.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |