summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-03-30 18:48:15 +0200
committerDan McGee <dan@archlinux.org>2009-07-22 20:13:53 -0500
commitca6ef852f9944ad31e8a136f7faf71da2c5fb57f (patch)
treeddc13ce9e32a17c4c916720cf0e290fb7175c60b /contrib
parent4b21504ffc947d39a0c69a774fe14a37262942a8 (diff)
New feature: files verification
This implements FS#13877. Add a new option "-Qk" which checks if all of the files for a given package (or packages) are really on the system (i.e. not accidentally deleted). This can be combined with filters and other display options. It also respects both the --quiet and --verbose flags to give varying levels of output. Based on the original patch by Charly Coste <changaco@laposte.net>, thanks for your work! Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash_completion2
-rw-r--r--contrib/zsh_completion1
2 files changed, 3 insertions, 0 deletions
diff --git a/contrib/bash_completion b/contrib/bash_completion
index 11f021c8..65135cfd 100644
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -183,6 +183,7 @@ _pacman ()
search) mod="${mod}s" ;;
upgrades) mod="${mod}u" ;;
cascade) mod="${mod}c" ;;
+ check) mod="${mod}k" ;;
dbonly) mod="${mod}k" ;;
nosave) mod="${mod}n" ;;
recursive) mod="${mod}s" ;;
@@ -294,6 +295,7 @@ _pacman ()
-g --groups \
-h --help \
-i --info \
+ -k --check \
-l --list \
-m --foreign \
-o --owns \
diff --git a/contrib/zsh_completion b/contrib/zsh_completion
index e1273184..2f43d9b2 100644
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -50,6 +50,7 @@ _pacman_opts_query_modifiers=(
'-e[List packages explicitly installed]'
'-i[View package information]'
'-ii[View package information including backup files]'
+ '-k[Check package files]'
'-l[List package contents]'
'-m[List installed packages not found in sync db(s)]'
'-t[List packages not required by any package]'