Added build-dep to aptitude's completion (Closes: #495883)

This commit is contained in:
David Paleino 2008-11-22 18:10:38 +01:00
parent ce73f0facf
commit f0ed7c20e2
2 changed files with 4 additions and 3 deletions

View File

@ -2312,7 +2312,7 @@ _aptitude()
-Z -v --verbose --purge-unused --schedule-only' -Z -v --verbose --purge-unused --schedule-only'
for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
if [[ ${COMP_WORDS[i]} == @(install|reinstall|hold|unhold|markauto|unmarkauto|dist-upgrade|full-upgrade|download|show|forbid-version|purge|remove|changelog|why|why-not|keep|keep-all) ]]; then if [[ ${COMP_WORDS[i]} == @(install|reinstall|hold|unhold|markauto|unmarkauto|dist-upgrade|full-upgrade|download|show|forbid-version|purge|remove|changelog|why|why-not|keep|keep-all|build-dep) ]]; then
special=${COMP_WORDS[i]} special=${COMP_WORDS[i]}
fi fi
#exclude some mutually exclusive options #exclude some mutually exclusive options
@ -2322,7 +2322,7 @@ _aptitude()
if [[ -n "$special" ]]; then if [[ -n "$special" ]]; then
case $special in case $special in
@(install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade|download|show|changelog|why|why-not)) @(install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade|download|show|changelog|why|why-not|build-dep))
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
return 0 return 0
;; ;;

3
debian/changelog vendored
View File

@ -32,6 +32,7 @@ bash-completion (200809xx) UNRELEASED; urgency=low
* Fixed errors with POSIX enabled (Closes: #502804) * Fixed errors with POSIX enabled (Closes: #502804)
* Fixed dpkg-source wrong exit() with return() (Closes: #) * Fixed dpkg-source wrong exit() with return() (Closes: #)
* Added --schedule-only to aptitude's completion (Closes: #502664) * Added --schedule-only to aptitude's completion (Closes: #502664)
* Added build-dep to aptitude's completion (Closes: #495883)
* Added support for `-F configfile' to _known_hosts(), ssh, scp and * Added support for `-F configfile' to _known_hosts(), ssh, scp and
sftp, thanks to Freddy Vulto (Closes: #504141) sftp, thanks to Freddy Vulto (Closes: #504141)
* Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto * Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto
@ -44,7 +45,7 @@ bash-completion (200809xx) UNRELEASED; urgency=low
* debian/control: * debian/control:
- fixed typo in the long description - fixed typo in the long description
-- David Paleino <d.paleino@gmail.com> Sat, 22 Nov 2008 17:22:28 +0100 -- David Paleino <d.paleino@gmail.com> Sat, 22 Nov 2008 17:38:54 +0100
bash-completion (20080705) unstable; urgency=low bash-completion (20080705) unstable; urgency=low