diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-04-07 15:01:03 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-04-07 15:01:03 +0000 |
commit | 38cce57dd7e28ae0c37b43237ca25d2d18f7421d (patch) | |
tree | dc119cbbf0dc6c6fbb74cf20912974d6e2c83927 /Completion | |
parent | d779b43f42b331841f6ffa973f77f9fb97811b84 (diff) | |
download | zsh-38cce57dd7e28ae0c37b43237ca25d2d18f7421d.tar.gz zsh-38cce57dd7e28ae0c37b43237ca25d2d18f7421d.tar.xz zsh-38cce57dd7e28ae0c37b43237ca25d2d18f7421d.zip |
10562, 10581: Complete .src.rpm after rpm --rebuild; note fixed bug; typo.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Linux/_rpm | 8 |
1 files changed, 6 insertions, 2 deletions
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' \ |