Package: zsh
Version: 4.3.2-25
Severity: wishlist
Tags: patch
Hi,
I submitted an update for _aptitude to zsh-workers in October of last
year, which has was ignored. I've been using this updated completion
since then without problems. So, I'm resubmitting the patch to you,
because I guess you are more or less responsible for debian specific
completions anyway.
If I'm trying something stupid, feel free to tell me. :-)
Regards, Frank
[snip]
--- _aptitude.orig 2007-01-02 21:35:47.000000000 +0100
+++ _aptitude 2007-01-02 21:32:47.000000000 +0100
@@ -2,6 +2,15 @@
local curcontext="$curcontext" state line cmds ret=1
+function _aptitude_release() {
+ local expl releases
+ releases=(
+${${(M)${(f)"$(</etc/apt/sources.list)"}\
+:#[ $'\t']#deb(|-src)*}/(#b)[ $'\t']#[^ $'\t']##[ $'\t']##[^ $'\t']##[
$'\t']##([^ $'\t']##)*/$match[1]}
+ )
+ _wanted list expl release compadd ${expl} - ${(u)releases}
+}
+
_arguments -C \
'(- 1 *)'{-h,--help}'[display help information]' \
'(- 1 *)--version[display version information]' \
@@ -17,10 +26,18 @@
'(-D --show-deps)'{-D,--show-deps}'[show brief explanations of automatic
installations and removals]' \
'-Z[show disk space changes for each package]' \
'(-v --verbose)'{-v,--verbose}'[causes some commands to display extra
information]' \
- '(--without-recommends)--with-recommends[install recommended packages when
installing new packages]' \
+ '(-R --without-recommends)'{-R,--with-recommends}'[install recommended
packages when installing new packages]' \
'(--without-suggests)--with-suggests[install suggested packages when
installing new packages]' \
- '(--with-recommends)--without-recommends[ignore recommended packages when
installing new packages]' \
+ '(-r --with-recommends)'{-r,--without-recommends}'[ignore recommended
packages when installing new packages]' \
'(--with-suggests)--without-suggests[ignore suggested packages when
installing new packages]' \
+ '(-t --target-release)'{-t,--target-release}'[set the release from which
packages should be installed]:release:_aptitude_release' \
+ '(-q --quiet)'{-q=,--quiet=}'[less Output]:level' \
+ '--schedule-only[schedule operations to be performed in the future]' \
+ '--purge-unused[purge unused packages instead of removing]' \
+ '--visual-preview[start up the visual interface and display its preview
screen]' \
+ '-S[load the extended state information from non-standard state file]:state
file:_files' \
+ '-u[begin updating the package lists as soon as the program starts]' \
+ '-i[displays a download preview when the program starts]' \
'1: :->cmds' \
'*: :->args' && ret=0
[snap]
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18.3suspend2+ipw2200
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages zsh depends on:
ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy
ii libc6 2.3.6.ds1-9 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
Versions of packages zsh recommends:
ii libcap1 1:1.10-14 support for getting/setting POSIX.
ii libpcre3 6.7-1 Perl 5 Compatible Regular Expressi
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]