]> git.pld-linux.org Git - packages/bash-completion.git/blame - bash-completion-FHS.patch
- rel 3
[packages/bash-completion.git] / bash-completion-FHS.patch
CommitLineData
24e31c9e
ER
1--- bash_completion/bash_completion 2006-03-01 22:00:59.000000000 +0200
2+++ bash_completion 2006-03-01 22:06:19.000000000 +0200
3@@ -1735,17 +1735,17 @@
4 local ver nodig nosig
1bc90773 5
24e31c9e
ER
6 # refresh cache if writable
7- if [ /var/log/rpmpkgs -ot /var/lib/rpm/Packages -a -w /var/log/rpmpkgs ]; then
8+ if [ /var/cache/rpmpkgs.txt -ot /var/lib/rpm/Packages -a -w /var/cache/rpmpkgs.txt ]; then
9 # we grab the output to local variable to prevent possible race
10 local tmp=$(rpm -qa $nodig $nosig --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' | LC_ALL=C sort)
11- echo "$tmp" > /var/log/rpmpkgs
12+ echo "$tmp" > /var/cache/rpmpkgs.txt
13 fi
14
15- if [ -r /var/log/rpmpkgs -a /var/log/rpmpkgs -nt /var/lib/rpm/Packages ]; then
53361f1b 16+ if [ -r /var/cache/rpmpkgs.txt -a /var/cache/rpmpkgs.txt -nt /var/lib/rpm/Packages ]; then
1bc90773
ER
17 # using RHL 7.2 or later - this is quicker than querying the DB
18 COMPREPLY=( $( sed -ne \
24e31c9e 19 's|^\('$cur'.*\)\.rpm$|\1|p' \
1bc90773
ER
20- /var/log/rpmpkgs ) )
21+ /var/cache/rpmpkgs.txt ) )
22 else
24e31c9e
ER
23 nodig=""
24 nosig=""
This page took 0.044466 seconds and 4 git commands to generate.