]> git.pld-linux.org Git - packages/bash-completion.git/blob - bash-completion-FHS.patch
- split and rediff patches for easier upstream merge
[packages/bash-completion.git] / bash-completion-FHS.patch
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
5  
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
16 +       if [ -r /var/cache/rpmpkgs.txt -a /var/cache/rpmpkgs.txt -nt /var/lib/rpm/Packages ]; then
17                 # using RHL 7.2 or later - this is quicker than querying the DB
18                 COMPREPLY=( $( sed -ne \
19                 's|^\('$cur'.*\)\.rpm$|\1|p' \
20 -                               /var/log/rpmpkgs ) )
21 +                               /var/cache/rpmpkgs.txt ) )
22         else
23                 nodig=""
24                 nosig=""
This page took 0.063766 seconds and 3 git commands to generate.