[yum-commits] yum-utils.bash

Ville Skyttä scop at osuosl.org
Sat Sep 3 20:17:00 UTC 2011


 yum-utils.bash |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 04fb6c3ad8f53864a2b8b0bec70d3683721e5112
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Sep 3 23:15:56 2011 +0300

    Add yum-builddep --target argument completion.

diff --git a/yum-utils.bash b/yum-utils.bash
index 1d37231..9a618d9 100644
--- a/yum-utils.bash
+++ b/yum-utils.bash
@@ -311,6 +311,13 @@ _yu_builddep()
 
     _yum_complete_baseopts "$cur" "$prev" && return 0
 
+    case $prev in
+        --target)
+            declare -F _rpm_buildarchs &>/dev/null && _rpm_buildarchs
+            return 0
+            ;;
+    esac
+
     $split && return 0
 
     if [[ $cur == -* ]] ; then


More information about the Yum-commits mailing list