Hi all. I wasn't sure of the patch submission procedure, so hopefully I'm submitting this in the correct manner.

Rather straightforward, just fixing the bash completion for the autoremove command.
---
etc/yum.bash | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/etc/yum.bash b/etc/yum.bash
index 9dce01f..d0a8a0f 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -172,7 +172,7 @@ _yum()
         _get_comp_words_by_ref -n = cur prev words

     # Commands offered as completions
-    local cmds=( check check-update clean deplist distro-sync downgrade
+ local cmds=( autoremove check check-update clean deplist distro-sync downgrade groups help history info install list load-transaction makecache provides
         reinstall remove repolist search shell update upgrade version )

@@ -189,6 +189,11 @@ _yum()

     case $cmd in

+        autoremove|erase|remove)
+            _yum_atgroups "$cur" || _yum_list installed "$cur"
+            return 0
+            ;;
+
         check|check-rpmdb)
             COMPREPLY=( $( compgen -W 'dependencies duplicates all' \
                 -- "$cur" ) )
@@ -228,11 +233,6 @@ _yum()
             return 0
             ;;

-        erase|remove)
-            _yum_atgroups "$cur" || _yum_list installed "$cur"
-            return 0
-            ;;
-
         group*)
if [[ ($cmd == groups || $cmd == group) && $prev == $cmd ]] ; then COMPREPLY=( $( compgen -W 'info install list remove summary' \

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to