Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_rpm fixes
- X-seq: zsh-workers 7671
- From: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: _rpm fixes
- Date: Mon, 6 Sep 1999 19:11:23 +0100
- In-reply-to: <199909061150.NAA02176@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>; from Sven Wischnowsky on Mon, Sep 06, 1999 at 01:50:39PM +0200
- Mail-followup-to: zsh-workers@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199909061150.NAA02176@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
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