]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- search rpm -qa cache from FHS compatible dir
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Jan 2005 03:36:38 +0000 (03:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-completion-FHS.patch -> 1.1

bash-completion-FHS.patch [new file with mode: 0644]

diff --git a/bash-completion-FHS.patch b/bash-completion-FHS.patch
new file mode 100644 (file)
index 0000000..8a4d6f0
--- /dev/null
@@ -0,0 +1,18 @@
+--- bash_completion/bash_completion~   2005-01-04 08:37:42.000000000 +0200
++++ bash_completion/bash_completion    2005-01-09 17:24:06.000000000 +0200
+@@ -1616,12 +1616,12 @@
+ {
+       local i
+-      if [ -r /var/log/rpmpkgs -a \
+-              /var/log/rpmpkgs -nt /var/lib/rpm/Packages ]; then
++      if [ -r /var/cache/rpmpkgs.txt -a \
++              /var/cache/rpmpkgs.txt -nt /var/lib/rpm/Packages ]; then
+               # using RHL 7.2 or later - this is quicker than querying the DB
+               COMPREPLY=( $( sed -ne \
+               's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+.*\.rpm$|\1|p' \
+-                              /var/log/rpmpkgs ) )
++                              /var/cache/rpmpkgs.txt ) )
+       else
+               COMPREPLY=( $( rpm -qa $nodig $nosig | sed -ne \
+               's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+$|\1|p' ) )
This page took 0.071788 seconds and 4 git commands to generate.