1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

10772: Chmouel: rpm --target completion

This commit is contained in:
Peter Stephenson 2000-04-17 08:42:18 +00:00
parent 1fb481b8c2
commit 306adcc9c4
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2000-04-17 Peter Stephenson <pws@cambridgesiliconradio.com>
* Chmouel: 10772: Completion/Linux/_rpm: --target support.
2000-04-17 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 10780: Completion/Base/_default, Completion/Base/_value,

View file

@ -162,6 +162,7 @@ while [[ -n "$state" ]]; do
'--ftpproxy:FTP proxy server:_hosts' \
'--ftpport:FTP port number:' \
--{short-circuit,clean,rmsource,sign,test} \
'--target:specify a build target:->target'\
'--buildroot:build root directory:_files -/' \
'--buildarch:architecture for which to build:' \
'--buildos:ositecture for which to build:' \
@ -189,6 +190,10 @@ while [[ -n "$state" ]]; do
package_or_file)
state=package_file
;&
target)
_wanted target expl 'Target platforms' \
compadd $(_call target rpm --showrc |grep 'compatible archs'|sed 's/.*: //') && ret=0
;;
package)
_wanted packages expl 'RPM package' \
compadd -M 'r:|-=* r:|=*' - $(_call packages rpm -qa) && ret=0