mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 06:49:49 +02:00
15630: update caching policy for newer versions of rpm.
This commit is contained in:
parent
d4e7ce1b9c
commit
3df9884871
@ -1,3 +1,8 @@
|
||||
2001-08-15 Adam Spiers <adam@spiers.net>
|
||||
|
||||
* 15630: Completion/Redhat/Command/_rpm: update caching policy
|
||||
for newer versions of rpm.
|
||||
|
||||
2001-08-14 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 15629: Completion/Unix/Command/_zip: unzip -Z
|
||||
|
@ -272,7 +272,10 @@ _rpms_caching_policy () {
|
||||
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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user