diff options
-rw-r--r-- | debian/patches/0002_aptitude_dash_F_completion.diff | 55 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 56 insertions, 0 deletions
diff --git a/debian/patches/0002_aptitude_dash_F_completion.diff b/debian/patches/0002_aptitude_dash_F_completion.diff new file mode 100644 index 000000000..b17c0e748 --- /dev/null +++ b/debian/patches/0002_aptitude_dash_F_completion.diff @@ -0,0 +1,55 @@ +This patch is included upstream. + +Index: pkg-zsh/Completion/Debian/Command/_aptitude +=================================================================== +--- pkg-zsh.orig/Completion/Debian/Command/_aptitude 2011-07-01 14:12:05.000000000 +0200 ++++ pkg-zsh/Completion/Debian/Command/_aptitude 2011-07-01 14:12:05.000000000 +0200 +@@ -13,6 +13,39 @@ + #}}} + } + ++# Helper function for -F / --display-format ++function _aptitude_format_strings() { ++ _values -s , 'format string' \ ++ '%%[Literal %]' \ ++ '%#number[Parameter replacement]' \ ++ '%a[Action flag]' \ ++ '%A[Action]' \ ++ '%B[Broken count]' \ ++ '%c[Current state flag]' \ ++ '%C[Current state]' \ ++ '%d[Description]' \ ++ '%H[Hostname]' \ ++ '%i[Pin priority]' \ ++ '%I[Installed size]' \ ++ '%m[Maintainer]' \ ++ '%M[Automatic flag]' \ ++ '%n[Program version]' \ ++ '%N[Program name]' \ ++ '%o[Download size]' \ ++ '%p[Package name]' \ ++ '%P[Priority]' \ ++ '%r[Reverse depends count]' \ ++ '%R[Abbreviated priority]' \ ++ '%s[Section]' \ ++ '%S[Trust status]' \ ++ '%t[Archive]' \ ++ '%T[Tagged]' \ ++ '%u[Disk usage change]' \ ++ '%v[Current version]' \ ++ '%V[Candidate version]' \ ++ '%Z[Size change]' ++} ++ + _arguments -C \ + '(- 1 *)'{-h,--help}'[display help information]' \ + '(- 1 *)--version[display version information]' \ +@@ -20,7 +53,7 @@ + '(-d --download-only)'{-d,--download-only}"[just download packages - don\'t install]" \ + '(-P --prompt)'{-P,--prompt}'[always display a prompt]' \ + '(-y --assume-yes)'{-y,--assume-yes}'[assume yes answer to questions]' \ +- '(-F --display-format)'{-F,--display-format}'[specify output format for search command]:format' \ ++ '(-F --display-format)'{-F,--display-format}'[specify output format for search command]:format:_aptitude_format_strings' \ + '(-O --sort)'{-O,--sort}'[specify sort order]:sort order:()' \ + '(-w --width)'{-w,--width}'[specify output width]:width' \ + '-f[aggressivley try to fix dependencies of broken packages]' \ diff --git a/debian/patches/series b/debian/patches/series index f03b809a5..878729318 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ deb_0000_at_configure.diff deb_0001_at_config_h_in.diff 0000_apt_markauto.diff 0001_git_updates.diff +0002_aptitude_dash_F_completion.diff |