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

PATCH: completion with rpm and --target



completion with rpm and --target

PS: what is the Completetion/Rpm/ directory appeared in the cvs ?

--- ./Completion/Linux/_rpm.chmou       Thu Apr 13 06:45:58 2000
+++ ./Completion/Linux/_rpm     Thu Apr 13 06:47:55 2000
@@ -162,6 +162,7 @@
       '--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 @@
   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

-- 
MandrakeSoft Inc                http://www.mandrakesoft.com
Montreal, QC CA.                                  --Chmouel



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