about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Debian/Command/_dpkg6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cfde598b..7739ff7dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-05  Clint Adams  <clint@zsh.org>
+
+	* Jesse Weinstein: 21230 (reformatted as 21231):
+	Completion/Debian/Command/_dpkg: complete -W/--show
+	for dpkg-deb.
+
 2005-04-30  Bart Schaefer  <schaefer@zsh.org>
 
 	* 21215: Test/C03traps.ztst: clean up TRAPEXIT file left behind by
diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_dpkg
index 962adf825..3d602bff8 100644
--- a/Completion/Debian/Command/_dpkg
+++ b/Completion/Debian/Command/_dpkg
@@ -2,9 +2,14 @@
 
 local _dpkg_deb_actions _dpkg_common_actions _dpkg_actions _dpkg_options
 local _dpkg_options_recursive _dpkg_actions_install _dpkg_actions_record_avail
+local _dpkg_deb_only_actions
 local curcontext="$curcontext" context state line expl ret
 typeset -A opt_args
 
+_dpkg_deb_only_actions=(
+  '(--show -W)'{--show,-W}'[show package info]:Debian package:_files -g \*.u\#deb'
+)
+
 _dpkg_deb_actions=(
   '(--build -b)'{--build,-b}'[build archive]:directory:_files -/'
   '(--contents -c)'{--contents,-c}'[list contents]:Debian package:_files -g "*.u#deb(-.)"'
@@ -84,6 +89,7 @@ case "$service" in
 
   dpkg-deb)
     _arguments "$_dpkg_deb_actions[@]" \
+	"$_dpkg_deb_only_actions[@]" \
 	"$_dpkg_common_actions[@]" && return 0
   ;;
   dpkg-reconfigure)