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

PATCH: fix rpm caching with newer rpm



They changed the name of the package index.

Index: Completion/Redhat/Command/_rpm
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Redhat/Command/_rpm,v
retrieving revision 1.3
diff -u -r1.3 _rpm
--- Completion/Redhat/Command/_rpm	2001/06/05 13:48:09	1.3
+++ Completion/Redhat/Command/_rpm	2001/08/15 13:28:05
@@ -272,7 +272,10 @@
   oldp=( "$1"(mw+1) )
   (( $#oldp )) && return 0
 
-  [[ /var/lib/rpm/packages.rpm -nt "$1" ]]
+  pkg_indices=( /var/lib/rpm/{packages.rpm,Packages}(N) )
+  for pkg_index in $pkg_indices; do
+    [[ "$pkg_index" -nt "$1" ]] && return 0
+  done
 }
 
 _rpm "$@"



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