From 38cce57dd7e28ae0c37b43237ca25d2d18f7421d Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 7 Apr 2000 15:01:03 +0000 Subject: 10562, 10581: Complete .src.rpm after rpm --rebuild; note fixed bug; typo. --- Completion/Linux/_rpm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm index 9a39773c4..3b027dc09 100644 --- a/Completion/Linux/_rpm +++ b/Completion/Linux/_rpm @@ -70,8 +70,9 @@ _arguments -C -s \ '--erase:*:uninstall:->uninstall' \ -'b+[build mode (spec file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ binary\ and\ source\ packages)):*:build:->build_b' \ -'t+[build mode (tar file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ binary\ and\ source\ packages)):*:build:->build_t' \ - --{rebuild,rmsource,recompile,resign,addsign}':*:RPM package:->package' \ - '-K+[signature check mode]:*:sigcheck:->sigcheck' \ + --{rmsource,recompile,resign,addsign}':*:RPM package:->package' \ + '--rebuild:*:Src RPM files:->package_src' \ + '-K+[signature check mode]:*:sigcheck:->sigcheck' \ '--checksig:*:sigcheck:->sigcheck' \ '--rebuilddb:*:rebuild:->rebuild' && ret=0 @@ -201,6 +202,9 @@ while [[ -n "$state" ]]; do 'prefixes:ftp URL prefix:compadd ftp://' && ret=0 fi ;; + package_src) + _files -g \*.src\(\#i\).rpm + ;& tags) if compset -P '*%*\{'; then _wanted tags expl 'RPM tag' \ -- cgit 1.4.1