]> git.pld-linux.org Git - packages/bash-completion.git/blame - bash-completion-rpm-arch.patch
- pass --nodigest and --nosignature params when refreshing rpm -qa cache
[packages/bash-completion.git] / bash-completion-rpm-arch.patch
CommitLineData
57aa5a8c
ER
1--- bash_completion/bash_completion 2006-01-18 02:02:52.000000000 +0200
2+++ /tmp/bash_completion 2006-01-18 02:02:01.000000000 +0200
3@@ -1731,11 +1731,10 @@
4 if [ -r /var/cache/rpmpkgs.txt -a /var/cache/rpmpkgs.txt -nt /var/lib/rpm/Packages ]; then
5 # using RHL 7.2 or later - this is quicker than querying the DB
6 COMPREPLY=( $( sed -ne \
7- 's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+.*\.rpm$|\1|p' \
d804b4b1 8+ 's|^\('$cur'.*\)\.rpm$|\1|p' \
57aa5a8c
ER
9 /var/cache/rpmpkgs.txt ) )
10 else
11- COMPREPLY=( $( rpm -qa $nodig $nosig | sed -ne \
12- 's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+$|\1|p' ) )
9eb3f5f8 13+ COMPREPLY=( $( rpm -qa $nodig $nosig --qf '%{name}-%{version}-%{release}.%{arch}\n' "$cur*" ) )
57aa5a8c
ER
14 fi
15 }
16
This page took 0.70538 seconds and 4 git commands to generate.