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

PATCH: --rebuild with _rpm should give *.src.rpm



When doing a rpm --rebuild  it's mainly to complete src.rpm, here is
the patch :

Index: Completion/Linux/_rpm
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/_rpm,v
retrieving revision 1.3
diff -u -r1.3 _rpm
--- Completion/Linux/_rpm       2000/04/04 19:34:26     1.3
+++ Completion/Linux/_rpm       2000/04/06 22:06:24
@@ -70,8 +70,9 @@
   '--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 @@
          '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' \


-- 
MandrakeSoft Inc                http://www.mandrakesoft.com
Pasadena, CA USA                                  --Chmouel



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