summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_dpkg24
2 files changed, 19 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index b90f8cef6..b81d847ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-01  Clint Adams  <clint@zsh.org>
+
+	* 17391: Completion/Debian/Command/_dpkg: complete files after
+	dpkg -S.
+
 2002-07-01  Peter Stephenson  <pws@csr.com>
 
 	* 17384: Src/Zle/zle_main.c, Src/Zle/iwidgets.list,
diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_dpkg
index 79851134b..d8b5d9327 100644
--- a/Completion/Debian/Command/_dpkg
+++ b/Completion/Debian/Command/_dpkg
@@ -91,10 +91,10 @@ esac
 
 case "$state" in
   install|record_avail)
-        _call_function ret _dpkg_$state && return ret
+	_call_function ret _dpkg_$state && return ret
 # not needed anymore?
 #            "${(@e):-\$_dpkg_actions_${state}}" \
-        _arguments -C -A '-*' -s \
+	_arguments -C -A '-*' -s \
              "$_dpkg_options[@]" \
              \!${^_dpkg_actions%%:*} \
 	   - recur \
@@ -104,28 +104,32 @@ case "$state" in
 	     '*:Debian package:_path_files -g \*.deb'
   ;;
   remove|purge|status|listfiles)
-        _call_function ret _dpkg_$state && return ret
-  	_arguments -C -A "-*" -s "$_dpkg_options[@]" \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s "$_dpkg_options[@]" \
 	   '*:package:_deb_packages installed'
   ;;
   list)
-        _call_function ret _dpkg_$state && return ret
-        _arguments -C -A "-*" -s "$_dpkg_options[@]" \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s "$_dpkg_options[@]" \
            '*:packages:_deb_packages avail'
   ;;
   compare_versions)
-        _call_function ret _dpkg_$state && return ret
-        _arguments -C -A "-*" -s \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s \
 	'1:version A:' \
 	'2:operator:(lt le eq ne ge gt lt-nl le-nl ge-nl gt-nl)' \
 	'3:version B:'
   ;;
   configure)
-        _call_function ret _dpkg_$state && return ret
-        _arguments -C -A "-*" -s '--configure' \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s '--configure' \
 	   "$_dpkg_options[@]" \
 	  '(* --pending)-a[pending packages]' \
 	  '(* -a)--pending' \
 	  '*:package:_deb_packages installed'
   ;;
+  search)
+	_call_function ret _dpkg_$state && return ret
+	_files
+  ;;
 esac