]>
Commit | Line | Data |
---|---|---|
c891f9ee | 1 | Support rpm (jbj rpm 4.4.7+) hrmib exports for rpm -qa filter (via %_hrmib_path /var/cache/hrmib) |
628b594d | 2 | |
174ec85b ER |
3 | Not accepted upstream. |
4 | ||
628b594d ER |
5 | -- |
6 | Signed-off-by: Elan Ruusamäe <glen@delfi.ee> | |
7 | ||
cc8573cd JB |
8 | --- bash-completion-2.0/completions/rpm.orig 2012-01-07 23:44:41.000000000 +0100 |
9 | +++ bash-completion-2.0/completions/rpm 2012-07-28 07:21:12.033708931 +0200 | |
10 | @@ -4,6 +4,12 @@ | |
a8015381 | 11 | |
c891f9ee ER |
12 | _rpm_installed_packages() |
13 | { | |
7ebfc135 ER |
14 | + # if rpm (4.4.7+) is configured to export it's rpmdb to /var/cache/hrmib (%_hrmib_path) |
15 | + if [ -d /var/cache/hrmib -a -r /var/cache/hrmib ]; then | |
16 | + COMPREPLY=( $( LC_ALL=C command ls -1 /var/cache/hrmib | sed -ne '/^'$cur'/p') ) | |
17 | + return | |
18 | + fi | |
19 | + | |
c891f9ee | 20 | if [[ -r /var/log/rpmpkgs && \ |
cc8573cd JB |
21 | /var/log/rpmpkgs -nt /var/lib/rpm/Packages ]]; then |
22 | # using RHL 7.2 or later - this is quicker than querying the DB |