[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 480f3bc9080d6aa31d43158f0b7d594bd8326670

David Paleino dapal at debian.org
Fri Jun 11 14:28:07 UTC 2010


The following commit has been merged in the master branch:
commit 480f3bc9080d6aa31d43158f0b7d594bd8326670
Author: David Paleino <dapal at debian.org>
Date:   Fri Jun 11 16:27:10 2010 +0200

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

diff --git a/contrib/reportbug b/contrib/reportbug
index ada0cc3..51e37fb 100644
--- a/contrib/reportbug
+++ b/contrib/reportbug
@@ -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 \

-- 
bash-completion



More information about the Bash-completion-commits mailing list