Package: bash-completion
Version: 1:1.3-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
*** /tmp/tmp1erzVK
In Ubuntu, the attached patch was applied to achieve the following:
Adding the 'download' subcommand to completions/apt
* patches/apt-get-download.patch: Add download as an apt-get
sub-command (LP: #720541)
Thanks for considering the patch.
-- System Information:
Debian Release: squeeze/sid
APT prefers natty-updates
APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-8-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru bash-completion-1.3/debian/changelog bash-completion-1.3/debian/changelog
diff -Nru bash-completion-1.3/debian/patches/apt-get-download.patch bash-completion-1.3/debian/patches/apt-get-download.patch
--- bash-completion-1.3/debian/patches/apt-get-download.patch 1969-12-31 16:00:00.000000000 -0800
+++ bash-completion-1.3/debian/patches/apt-get-download.patch 2011-05-02 09:26:35.000000000 -0700
@@ -0,0 +1,28 @@
+From: Clint Byrum <[email protected]>
+Author: "Lekensteyn" https://launchpad.net/~lekensteyn
+Origin: https://launchpad.net/bugs/720541
+Subject: add download to list of apt-get subcommands.
+Bug-Ubuntu: https://launchpad.net/bugs/720541
+
+Index: bash-completion-1.3/completions/apt
+===================================================================
+--- bash-completion-1.3.orig/completions/apt 2011-05-02 09:12:23.286222685 -0700
++++ bash-completion-1.3/completions/apt 2011-05-02 09:12:32.165699627 -0700
+@@ -9,7 +9,7 @@
+ _get_comp_words_by_ref cur prev
+
+ for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
+- if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep|changelog) ]]; then
++ if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep|changelog|download) ]]; then
+ special=${COMP_WORDS[i]}
+ fi
+ done
+@@ -66,7 +66,7 @@
+ else
+ COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade \
+ dist-upgrade install remove purge source build-dep \
+- changelog check clean autoclean autoremove' -- "$cur" ) )
++ check download clean autoclean autoremove changelog' -- "$cur" ) )
+ fi
+
+ return 0
diff -Nru bash-completion-1.3/debian/patches/series bash-completion-1.3/debian/patches/series
--- bash-completion-1.3/debian/patches/series 2011-04-04 12:49:55.000000000 -0700
+++ bash-completion-1.3/debian/patches/series 2011-05-02 09:12:15.000000000 -0700
@@ -1,3 +1,4 @@
disable-avahi-browse.diff
apt-get-changelog.patch
disable-whitelist-on-fail.patch
+apt-get-download.patch