[Pkg-zsh-commits] [zsh] 01/01: Add patch to fix parsing of aptitude 0.7.5's --help output

Axel Beckert abe at deuxchevaux.org
Sat Dec 26 18:39:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit d3bb50ba990120fb316f9ea0710b5f26a88eb108
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Sat Dec 26 19:37:05 2015 +0100

    Add patch to fix parsing of aptitude 0.7.5's --help output
    
    … without stopping to be able parse older aptitude versions' output.
---
 .../fix-aptitude-completion-for-0.7.5-807906.patch      | 17 +++++++++++++++++
 debian/patches/series                                   |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/fix-aptitude-completion-for-0.7.5-807906.patch b/debian/patches/fix-aptitude-completion-for-0.7.5-807906.patch
new file mode 100644
index 0000000..0da989d
--- /dev/null
+++ b/debian/patches/fix-aptitude-completion-for-0.7.5-807906.patch
@@ -0,0 +1,17 @@
+Description: Also parse --help output of aptitude 0.7.5 and later
+Author: Axel Beckert <abe at debian.org>
+Bug-Debian: https://bugs.debian.org/807906
+
+Index: zsh/Completion/Debian/Command/_aptitude
+===================================================================
+--- zsh.orig/Completion/Debian/Command/_aptitude	2015-09-08 23:39:06.026975805 +0200
++++ zsh/Completion/Debian/Command/_aptitude	2015-12-26 19:26:14.681265798 +0100
+@@ -80,7 +80,7 @@
+ 
+ case $state in
+   cmds)
+-    cmds=( ${${(M)${(f)"$(LC_ALL=C _call_program commands aptitude -h 2>/dev/null)"}:#* - *}/(#b) (*[^ ]) #- (*)/$match[1]:$match[2]:l})
++    cmds=( ${${(M)${(f)"$(LC_ALL=C _call_program commands aptitude -h 2>/dev/null)"}:# [^- ][^ ]## *}/(#b) ([^ ]##) ##(- )#([^- ]*)/$match[1]:$match[3]:l})
+ 
+     _describe -t commands 'aptitude command' cmds && ret=0
+   ;;
diff --git a/debian/patches/series b/debian/patches/series
index 877edc4..7fa5170 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 further-mitigate-test-suite-hangs.patch
 update-apt-completion-808317.patch
+fix-aptitude-completion-for-0.7.5-807906.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list