[yum-commits] 3 commits - yum-utils.bash

Ville Skyttä scop at osuosl.org
Thu Dec 22 20:02:22 UTC 2011


 yum-utils.bash |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

New commits:
commit 282969a77ab5e49a35f0677eebb9739100b31631
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 22 22:01:26 2011 +0200

    Add repoquery --search-fields arg completion.

diff --git a/yum-utils.bash b/yum-utils.bash
index 5aff846..8fd6724 100644
--- a/yum-utils.bash
+++ b/yum-utils.bash
@@ -190,7 +190,7 @@ _yu_repoquery()
     case $prev in
         -h|--help|--version|--qf|--queryformat|--resolve|--archlist|\
         --whatprovides|--whatrequires|--whatobsoletes|--whatconflicts|\
-        --repofrompath|--level|--search-fields|--setopt)
+        --repofrompath|--level|--setopt)
             return 0
             ;;
         -f|--file)
@@ -242,6 +242,10 @@ _yu_repoquery()
             COMPREPLY=( $( compgen -W 'text ascii-tree dot-tree' -- "$cur" ) )
             return 0
             ;;
+        --search-fields)
+            COMPREPLY=( $( compgen -W 'name summary description' -- "$cur" ) )
+            return 0
+            ;;
     esac
 
     $split && return 0
commit 1497631bc299774252fb07ac35359ed7e1f2601e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 22 22:00:14 2011 +0200

    Complete repoquery -f with filenames.

diff --git a/yum-utils.bash b/yum-utils.bash
index 64b9e36..5aff846 100644
--- a/yum-utils.bash
+++ b/yum-utils.bash
@@ -188,11 +188,15 @@ _yu_repoquery()
     done
 
     case $prev in
-        -h|--help|--version|-f|--file|--qf|--queryformat|--resolve|--archlist|\
+        -h|--help|--version|--qf|--queryformat|--resolve|--archlist|\
         --whatprovides|--whatrequires|--whatobsoletes|--whatconflicts|\
         --repofrompath|--level|--search-fields|--setopt)
             return 0
             ;;
+        -f|--file)
+            COMPREPLY=( $( compgen -f -o plusdirs -- "$cur" ) )
+            return 0
+            ;;
         -l|--list|-i|--info|-R|--requires)
             if $groupmode ; then
                 _yum_helper groups list all "$cur" 2>/dev/null
commit 3ff863d9286f19173182218516f3a8367ec2e11d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 22 21:58:15 2011 +0200

    Add repoquery --setopt (non)completion.

diff --git a/yum-utils.bash b/yum-utils.bash
index c2287be..64b9e36 100644
--- a/yum-utils.bash
+++ b/yum-utils.bash
@@ -190,7 +190,7 @@ _yu_repoquery()
     case $prev in
         -h|--help|--version|-f|--file|--qf|--queryformat|--resolve|--archlist|\
         --whatprovides|--whatrequires|--whatobsoletes|--whatconflicts|\
-        --repofrompath|--level|--search-fields)
+        --repofrompath|--level|--search-fields|--setopt)
             return 0
             ;;
         -l|--list|-i|--info|-R|--requires)
@@ -250,7 +250,7 @@ _yu_repoquery()
         --pkgnarrow --installed --show-duplicates --repoid --enablerepo
         --disablerepo --repofrompath --plugins --quiet --verbose --cache
         --tempcache --querytags --config --level --output --search
-        --search-fields' -- "$cur" ) )
+        --search-fields --setopt' -- "$cur" ) )
 } &&
 complete -F _yu_repoquery -o filenames repoquery repoquery.py
 


More information about the Yum-commits mailing list