diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Linux/_rpm | 5 |
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 |