[yum-commits] etc/yum.bash

Ville Skyttä scop at osuosl.org
Thu Jan 3 15:26:42 UTC 2013


 etc/yum.bash |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 92739ef4e9f2b0532543c6f7c762dcd361d7ac80
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Jan 3 17:24:43 2013 +0200

    Complete provides/whatprovides with filenames. BZ 891561

diff --git a/etc/yum.bash b/etc/yum.bash
index d484f8d..ac06316 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -180,7 +180,7 @@ _yum()
             return 0
             ;;
 
-        check-update|makecache|provides|whatprovides|resolvedep|search)
+        check-update|makecache|resolvedep|search)
             return 0
             ;;
 
@@ -315,6 +315,11 @@ _yum()
             return 0
             ;;
 
+        provides|whatprovides)
+            COMPREPLY=( $( compgen -f -o plusdirs -- "$cur" ) )
+            return 0
+            ;;
+
         repolist)
             [[ $prev == $cmd ]] && \
                 COMPREPLY=( $( compgen -W 'all enabled disabled' -- "$cur" ) )


More information about the Yum-commits mailing list