- turn --targetbuildarch into --target and --buildarch in rpm completion

- rpm's --rebuild and --recompile can also use --target
This commit is contained in:
ianmacd 2003-08-03 01:07:38 +00:00
parent 3b13c232ad
commit 1a542a6164

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.599 2003/08/03 02:57:49 ianmacd Exp $
# $Id: bash_completion,v 1.600 2003/08/03 03:07:38 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1490,7 +1490,7 @@ _rpm()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--short-circuit --timecheck \
--clean --rmsource --rmspec --test --sign --buildroot \
--targetbuildarch --buildos --nobuild --nodeps \
--target -- buildarch --buildos --nobuild --nodeps \
--nodirtokens' -- $cur ) )
elif [[ ${COMP_WORDS[1]} == -b* ]]; then
_filedir 'spec'
@ -1501,7 +1501,7 @@ _rpm()
--re@(build|compile))
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--nodeps --rmsource \
--rmspec --sign --nodirtokens' -- $cur ) )
--rmspec --sign --nodirtokens --target' -- $cur ) )
else
_filedir 'src.rpm'
fi