[yum-commits] 2 commits - docs/yum-builddep.1 yum-utils.bash

Ville Skyttä scop at osuosl.org
Sat Feb 8 11:30:56 UTC 2014


 docs/yum-builddep.1 |    2 +-
 yum-utils.bash      |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 447b88ff1b20e775d663b4b4b59d1d83c808805a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Feb 8 13:29:21 2014 +0200

    yum-builddep: Complete on local source RPMs, BZ 884303

diff --git a/yum-utils.bash b/yum-utils.bash
index 601e0d9..04b78a7 100644
--- a/yum-utils.bash
+++ b/yum-utils.bash
@@ -355,7 +355,8 @@ _yu_builddep()
     fi
 
     local IFS=$'\n'
-    COMPREPLY=( $( compgen -f -o plusdirs -X "!*.spec" -- "$cur" ) )
+    COMPREPLY=( $( compgen -f -o plusdirs -X "!*.sp@(ec|m)" -- "$cur" ) )
+    COMPREPLY+=( $( compgen -f -o plusdirs -X "!*.?(no)src.rpm" -- "$cur" ) )
     [[ $cur != */* && $cur != ~* ]] && _yum_list all "$cur" 2>/dev/null
 } &&
 complete -F _yu_builddep -o filenames yum-builddep yum-builddep.py
commit d9adda1589e131fa0d499432dcfc46b0a72ce519
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Feb 8 13:22:22 2014 +0200

    yum-builddep: Note spec support in man page

diff --git a/docs/yum-builddep.1 b/docs/yum-builddep.1
index ac7601e..6cad8a6 100644
--- a/docs/yum-builddep.1
+++ b/docs/yum-builddep.1
@@ -9,7 +9,7 @@ yum-builddep \- install missing dependencies for building an RPM package
 \fByum-builddep\fP is a program which installs the RPMs needed to build
 the specified package.  The source RPM for the specified package must
 be available in a Yum repository (which will be automatically enabled, if it is
-disabled) or it can be a local source RPM file.
+disabled) or it can be a local source RPM or a spec file.
 .PP 
 .SH "EXAMPLES"
 .IP "Download and install all the RPMs needed to build the kernel RPM:"


More information about the Yum-commits mailing list