Package: zsh Version: 4.3.10-12 Severity: normal Tags: patch Hi,
the completion for `bts` does not support "affects". The attached *untested* patch should fix that. Cheers, Bernd -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.33.3-think (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages zsh depends on: ii libc6 2.10.2-7 Embedded GNU C Library: Shared lib ii libcap2 1:2.17-2 support for getting/setting POSIX. ii libncursesw5 5.7+20100313-2 shared libraries for terminal hand Versions of packages zsh recommends: ii libc6 2.10.2-7 Embedded GNU C Library: Shared lib ii libpcre3 7.8-3 Perl 5 Compatible Regular Expressi Versions of packages zsh suggests: pn zsh-doc <none> (no description available) -- no debconf information
>From 4898ab8c74e5e6f96dbd422589b5b34c61175d27 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz <[email protected]> Date: Wed, 28 Apr 2010 13:14:48 +0200 Subject: [PATCH] Support affects in the completion for `bts`. --- Completion/Debian/Command/_bts | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts index fb5cc52..8ef1530 100644 --- a/Completion/Debian/Command/_bts +++ b/Completion/Debian/Command/_bts @@ -26,7 +26,7 @@ if [[ CURRENT -eq 1 ]]; then reassign merge unmerge tag tags severity forwarded notforwarded help \ clone submitter found notfound block unblock user usertag usertags \ package owner noowner reportspam cache cleancache claim unclaim \ - subscribe unsubscribe fixed notfixed + subscribe unsubscribe fixed notfixed affects return fi @@ -216,6 +216,15 @@ case "$words[1]" in _wanted sep expl 'separator' compadd -S ' ' , . fi ;; + (affects) + if [[ CURRENT -eq 2 ]]; then + _message -e bugnum 'bug number' + elif [[ CURRENT -eq 3 ]]; then + _wanted operator expl 'operator' compadd - '+' '-' '=' + else + _wanted package expl 'package' _deb_packages avail + fi + ;; help) ;& *) _wanted sep expl 'separator' compadd -S ' ' , . -- 1.7.0.5

