]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- use just one path: s#/var/cache/rpmpkgs.txt#/var/log/rpmpkgs#g
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 17 Sep 2009 20:33:56 +0000 (20:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-completion-rpm-cache.patch -> 1.9

bash-completion-rpm-cache.patch

index ef998619199757eee1f20cecdc5a9324049ffce1..99f2a7f445327b05bfe12d8b85af2d5de762ba44 100644 (file)
@@ -19,12 +19,12 @@ Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
 +              return
 +      fi
 +
-+      # refresh cache if writable. FHS location
-+      if [ -w /var/cache/rpmpkgs.txt -a /var/cache/rpmpkgs.txt -ot /var/lib/rpm/Packages ]; then
++      # refresh cache if writable.
++      if [ -w /var/log/rpmpkgs -a /var/log/rpmpkgs -ot /var/lib/rpm/Packages ]; then
 +              # we grab the output to local variable to prevent possible race
 +              _rpm_nodigsig
 +              local tmp=$(rpm -qa $nodig $nosig --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n')
-+              echo "$tmp" > /var/cache/rpmpkgs.txt
++              echo "$tmp" > /var/log/rpmpkgs
 +      fi
  
        if [ -r /var/log/rpmpkgs -a \
This page took 0.246244 seconds and 4 git commands to generate.