diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Debian/Command/_aptitude | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index fc7440098..b46d7eda8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-12-27 Axel Beckert <abe@deuxchevaux.org> + + * 37438: Completion/Debian/Command/_aptitude: Also parse --help/-h + output of aptitude 0.7.5 and later. + 2015-12-26 Axel Beckert <abe@deuxchevaux.org> * 37436: Felipe Sateler: Completion/Debian/Command/_apt: diff --git a/Completion/Debian/Command/_aptitude b/Completion/Debian/Command/_aptitude index 2cb211149..b2b54599f 100644 --- a/Completion/Debian/Command/_aptitude +++ b/Completion/Debian/Command/_aptitude @@ -80,7 +80,7 @@ _arguments -C \ 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 ;; |