about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-04-17 08:42:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-04-17 08:42:18 +0000
commit306adcc9c47ac959d5fdd85ddb85470fac086e87 (patch)
tree3e4e50091f4f5a6aa63938f63136f9af0f81c8e3
parent1fb481b8c28f555c4f9b787cc92498a3821541ec (diff)
downloadzsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.gz
zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.xz
zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.zip
10772: Chmouel: rpm --target completion
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Linux/_rpm5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ec380381..2403cec48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm
index ff388fe22..6db97889a 100644
--- a/Completion/Linux/_rpm
+++ b/Completion/Linux/_rpm
@@ -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