[yum-commits] Branch 'yum-3_2_X' - etc/yum.bash

Ville Skyttä scop at osuosl.org
Sat Dec 19 12:31:41 UTC 2009


 etc/yum.bash |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

New commits:
commit 6a274188458a164df235b905e121a5b1a01c575c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 17 20:22:48 2009 +0200

    Add bash completion for the check command.

diff --git a/etc/yum.bash b/etc/yum.bash
index f48f588..1b2c8f5 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -80,14 +80,15 @@ _yum()
     local cur
     type _get_cword &>/dev/null && cur=`_get_cword` || cur=$2
     local prev=$3
-    local cmds=( check-update clean deplist downgrade groupinfo groupinstall
-        grouplist groupremove help history info install list localinstall
-        makecache provides reinstall remove repolist resolvedep search shell
-        update upgrade version )
+    local cmds=( check check-update clean deplist downgrade groupinfo
+        groupinstall grouplist groupremove help history info install list
+        localinstall makecache provides reinstall remove repolist resolvedep
+        search shell update upgrade version )
 
     local i c cmd
     for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do
-        for c in ${cmds[@]} erase groupupdate grouperase whatprovides ; do
+        for c in ${cmds[@]} check-rpmdb erase groupupdate grouperase \
+            whatprovides ; do
             [ ${COMP_WORDS[i]} = $c ] && cmd=$c && break
         done
         [ -z $cmd ] || break
@@ -95,6 +96,12 @@ _yum()
 
     case $cmd in
 
+        check|check-rpmdb)
+            COMPREPLY=( $( compgen -W 'dependencies duplicates all' \
+                -- "$cur" ) )
+            return 0
+            ;;
+
         check-update|grouplist|makecache|provides|whatprovides|resolvedep|\
         search|version)
             return 0


More information about the Yum-commits mailing list