Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix rpm caching with newer rpm
- X-seq: zsh-workers 15630
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: fix rpm caching with newer rpm
- Date: Wed, 15 Aug 2001 14:28:56 +0100
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
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