Author: glen                         Date: Tue Jan  3 19:38:04 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated rpmpkgs.txt patch to refresh cache when rpmdb is newer (improves 
performance)

---- Files affected:
SOURCES:
   bash-completion-FHS.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/bash-completion-FHS.patch
diff -u SOURCES/bash-completion-FHS.patch:1.1 
SOURCES/bash-completion-FHS.patch:1.2
--- SOURCES/bash-completion-FHS.patch:1.1       Tue Jan 11 04:36:38 2005
+++ SOURCES/bash-completion-FHS.patch   Tue Jan  3 20:37:59 2006
@@ -1,13 +1,17 @@
---- 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 @@
+--- bash_completion/bash_completion    2005-01-04 08:37:42.000000000 +0200
++++ /tmp/bash_completion       2006-01-02 20:18:52.000000000 +0200
+@@ -1718,12 +1723,16 @@
  {
        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
++      # refresh cache if writable
++      if [ -w /var/cache/rpmpkgs.txt -a /var/cache/rpmpkgs.txt -ot 
/var/lib/rpm/Packages ]; then
++              rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 
| LC_ALL=C sort > /var/cache/rpmpkgs.txt
++      fi
++
++      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'.*\)[EMAIL PROTECTED]|\1|p' \
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/bash-completion-FHS.patch?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to