SOURCES: bash-completion-rpm-cache.patch - use /var/cache/hrmib di...
glen
glen at pld-linux.org
Wed Feb 20 16:15:06 CET 2008
Author: glen Date: Wed Feb 20 15:15:06 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use /var/cache/hrmib dir contents in _rpm_installed_packages when available
---- Files affected:
SOURCES:
bash-completion-rpm-cache.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/bash-completion-rpm-cache.patch
diff -u SOURCES/bash-completion-rpm-cache.patch:1.2 SOURCES/bash-completion-rpm-cache.patch:1.3
--- SOURCES/bash-completion-rpm-cache.patch:1.2 Tue Jan 8 02:09:49 2008
+++ SOURCES/bash-completion-rpm-cache.patch Wed Feb 20 16:15:00 2008
@@ -1,10 +1,16 @@
---- bash_completion/bash_completion~ 2006-03-01 18:20:18.000000000 +0200
-+++ bash_completion/bash_completion 2008-01-08 02:50:17.000000000 +0200
-@@ -1732,29 +1732,20 @@
+--- bash_completion/bash_completion 2008-01-08 02:50:17.000000000 +0200
++++ bash_completion/bash_completion 2008-02-20 17:08:23.134899356 +0200
+@@ -1732,29 +1732,26 @@
#
_rpm_installed_packages()
{
- local ver nodig nosig
++ # if rpm (4.4.7+) is configured to export it's rpmdb to /var/cache/hrmib (%_hrmib_path)
++ if [ -d /var/cache/hrmib -a -r /var/cache/hrmib ]; then
++ COMPREPLY=( $( LC_ALL=C command ls -1 /var/cache/hrmib | sed -ne '/^'$cur'/p') )
++ return
++ fi
++
+ # refresh cache if writable
+ if [ /var/cache/rpmpkgs.txt -ot /var/lib/rpm/Packages -a -w /var/cache/rpmpkgs.txt ]; then
+ # we grab the output to local variable to prevent possible race
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/bash-completion-rpm-cache.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list