]> git.pld-linux.org Git - packages/bash-completion.git/blob - bash-completion-rpm-arch.patch
- pass --nodigest and --nosignature params when refreshing rpm -qa cache
[packages/bash-completion.git] / bash-completion-rpm-arch.patch
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' \
8 +               's|^\('$cur'.*\)\.rpm$|\1|p' \
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' ) )
13 +               COMPREPLY=( $( rpm -qa $nodig $nosig --qf '%{name}-%{version}-%{release}.%{arch}\n' "$cur*" ) )
14         fi
15  }
16  
This page took 0.020866 seconds and 3 git commands to generate.