[yum-commits] etc/yum.bash

Ville Skyttä scop at osuosl.org
Thu Dec 1 19:55:22 UTC 2011


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

New commits:
commit f1d11a31997667ab79615f8657d01f36df6ca99d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 1 21:54:34 2011 +0200

    Remove trailing [lang] from group completions.

diff --git a/etc/yum.bash b/etc/yum.bash
index 2f978c4..c0e9c6b 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -46,7 +46,8 @@ _yum_grouplist()
     local IFS=$'\n'
     # TODO: add -d 0 when http://yum.baseurl.org/ticket/29 is fixed
     COMPREPLY=( $( compgen -W "$( ${yum:-yum} -C grouplist $1 \
-        2>/dev/null | sed -ne 's/^[[:space:]]\{1,\}\(.\{1,\}\)/\1/p' )" \
+        2>/dev/null | sed -e 's/[[:space:]]\{1,\}\[.*$//' \
+        -ne 's/^[[:space:]]\{1,\}\(.\{1,\}\)/\1/p' )" \
         -- "$2" ) )
 }
 


More information about the Yum-commits mailing list