Bug 9478

Summary: Typo in rpm completion
Product: Sisyphus Reporter: Sir Raorn <raorn>
Component: zshAssignee: Sir Raorn <raorn>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P2 CC: arseny, at, george
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
_rpm.patch
none
_rpm.diff none

Description Sir Raorn 2006-04-26 21:51:17 MSD
rpm --rebuild --target <Tab>_rpm:1: command not found: _call_programs

/usr/share/zsh/Completion/Redhat/_rpm:273:
        _rpm_targets=( ${${(M)${(f)"$(_call_programs targets rpm
--showrc)"}:#compatible archs*}##*: } )

Change _call_programs to _call_program
Comment 1 Sir Raorn 2006-04-26 22:08:02 MSD
Created attachment 1467 [details]
_rpm.patch
Comment 2 at@altlinux.org 2006-06-20 05:14:56 MSD
I changed _call_programs to _call_program but it still doesnot work as expected.
I.e.
$ rpmbuild --target <TAB>
$ rpmbuild --target athlon\ k6\ pentium2\ i586\ i486\ i386\ noarch\ i686

Do you see the same behaviour?
I don't konw how to fix this offhand.
Comment 3 Sir Raorn 2006-06-20 11:52:56 MSD
Created attachment 1524 [details]
_rpm.diff

$ rpm -q zsh
zsh-4.3.2-alt0.1
$ diff -u /usr/share/zsh/Completion/Redhat/_rpm .zsh/Completion/_rpm
Comment 4 Sir Raorn 2006-06-20 11:54:37 MSD
(In reply to comment #2)
> Do you see the same behaviour?
> I don't konw how to fix this offhand.

You should apply https://bugzilla.altlinux.org/attachment.cgi?id=1467
Comment 5 at@altlinux.org 2006-06-21 07:15:31 MSD
I tried ${=...} before.  Does it work for you?  Not for me.
Comment 6 Sir Raorn 2009-04-12 01:38:35 MSD
[fix-9478]: created 4baa61e: "Fix --target option argument completion (ALT#9478)."
Comment 7 Sir Raorn 2009-04-12 19:33:43 MSD
Будет в следующей сборке.