Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_rpm fixes



Sven Wischnowsky (wischnow@xxxxxxxxxxxxxxxxxxxxxxx) wrote:
> 
> Peter Stephenson wrote:
> 
> > There were some minor typo fixes in the completion functions which I didn't
> > post.

Did you get this one?  I also fixed -b to complete .spec files.  It 
was completing installed rpms before for some reason.

diff -urN -x *~ zsh-3.1.6-4/Completion/Linux/_rpm zsh-3.1.6-adam/Completion/Linux/_rpm
--- zsh-3.1.6-4/Completion/Linux/_rpm	Mon Sep  6 13:15:25 1999
+++ zsh-3.1.6-adam/Completion/Linux/_rpm	Mon Sep  6 18:28:24 1999
@@ -44,7 +44,7 @@
 # Used by `_arguments', made local here.
 
 local state lstate line
-tyeset -A options
+typeset -A options
 
 state=''
 
@@ -139,7 +139,7 @@
       '*:RPM package:->package' && ret=0
     ;;
   build_b)
-    tmp=( '*:RPM package:->package' )
+    tmp=( '*:spec file:_files -g \*.spec' )
     ;&
   build_t)
     (( $#tmp )) || tmp=( '*:tar file:_files -g \*.\(\#i\)tar\(.\*\|\)' )



Messages sorted by: Reverse Date, Date, Thread, Author