add --rmspec handling to _rpm()

This commit is contained in:
ianmacd 2002-01-23 17:24:46 +00:00
parent c442af0caa
commit aa8c28a50a

View File

@ -2,7 +2,7 @@
#
# <![CDATA[
#
# $Id: bash_completion,v 1.64 2002/01/23 18:14:19 ianmacd Exp $
# $Id: bash_completion,v 1.65 2002/01/23 18:24:46 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -660,8 +660,8 @@ _rpm()
COMPREPLY=( $( compgen -W 'help version initdb \
checksig recompile rebuild resign addsign rebuilddb \
showrc setperms setugids tarbuild eval install \
upgrade query freshen erase verify querytags rmsource' \
${cur_nodash#-} ) )
upgrade query freshen erase verify querytags rmsource \
rmspec' ${cur_nodash#-} ) )
dashify
return 0
;;
@ -795,7 +795,7 @@ _rpm()
-[bt]*)
# complete on list of relevant options
COMPREPLY=( $( compgen -W 'short-circuit timecheck clean \
rmsource test sign buildroot target buildarch buildos \
rmsource rmspec test sign buildroot target buildarch buildos \
nobuild' ${cur_nodash#-} ) )
dashify
# return if $cur is an option
@ -828,7 +828,7 @@ _rpm()
add_package_list
return 0
;;
--rmsource)
--rms@(ource|pec))
file_glob spec
return 0
;;