Refreshed reportbug completion, added --from-buildd (Debian: #579471)

This commit is contained in:
David Paleino 2010-06-11 16:27:10 +02:00
parent 83252965e2
commit 480f3bc908

View File

@ -41,7 +41,7 @@ _reportbug()
COMPREPLY=( $( compgen -W "gnats debbugs" -- "$cur" ) )
return 0
;;
-T|--tags)
-T|--tag)
COMPREPLY=( $( compgen -W "none \
woody potato sarge sarge-ignore etch etch-ignore \
lenny lenny-ignore sid experimental confirmed \
@ -50,23 +50,30 @@ _reportbug()
unreproducible upstream wontfix ipv6 lfs" -- "$cur" ))
return 0
;;
--from-buildd)
COMPREPLY=( $( compgen -S "_" -W '$( apt-cache dumpavail | \
command grep "^Source: $cur" | sort -u | cut -f2 -d" " )' ))
return 0
;;
*)
;;
esac
COMPREPLY=($( compgen -W '-h --help -v --version -a --af -b \
--no-query-bts --query-bts -B --bts -c --configure \
--no-config-files --check-available -d --debug \
--no-check-available -e --editor --email -f \
--filename -g --gnupg -H --header -i --include -j \
--justification -l --ldap --no-ldap -L --list-cc -m \
--maintonly --mode --mua --mta --mutt -n --mh --nmh \
-o --output -p --print -P --pgp --proxy --http_proxy\
-q --quiet -Q --query-only --realname --report-quiet \
--reply-to --replyto -s --subject -S --severity \
--smtphost -t --type -T --tags --template -V -x \
--no-cc --package-version -z --no-compress \
--ui --interface -u \
COMPREPLY=($( compgen -W '--help --version --attach \
--no-query-bts --query-bts --bts --body --body-file --bodyfile \
--no-config-files --class --configure --check-available --debug \
--no-check-available --debconf --test --draftpath --editor --email \
--exit-prompt --filename --from-buildd --gnupg --gpg --path --gnus \
--header --include --no-check-installed --check-installed \
--justification --kudos --keyid --license --list-cc \
--maintonly --mirror --mode --mua --mta --mutt --mh --nmh \
--bugnumber --no-bug-script --no-cc-menu --output --offline \
--print --paranoid --no-paranoid --pgp --proxy --http_proxy \
--pseudo-header --quiet --query-only --query-source --no-query-source \
--realname --report-quiet --reply-to --replyto --subject --severity \
--smtphost --timeout --tls --smtpuser --smtppasswd --src --source --type \
--tag --template --verify --no-verify --no-cc --package-version \
--no-compress --ui --interface \
wnpp boot-floppies kernel bugs.debian.org \
cdimage.debian.org general installation-reports \
listarchives lists.debian.org mirrors nm.debian.org \