[man-db] - resolves: #829553 clear the old man cache on install or update

pschiffe pschiffe at fedoraproject.org
Thu Jul 12 15:13:18 UTC 2012


commit 900f97673f6b801fc9e8e14989f3ba77807588a5
Author: Peter Schiffer <pschiffe at redhat.com>
Date:   Thu Jul 12 17:12:54 2012 +0200

    - resolves: #829553
      clear the old man cache on install or update

 man-db.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/man-db.spec b/man-db.spec
index cd20da0..fdcd5c6 100644
--- a/man-db.spec
+++ b/man-db.spec
@@ -4,7 +4,7 @@
 Summary: Tools for searching and reading man pages
 Name: man-db
 Version: 2.6.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 # project man-db  GPLv2+
 # Gnulib part     GPLv3+
 License: GPLv2+ and GPLv3+
@@ -82,9 +82,9 @@ install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
 %find_lang %{name}
 %find_lang %{name}-gnulib
 
-# update the man db after install or update
+# clear the old cache
 %post
-/bin/bash %{_sysconfdir}/cron.daily/man-db.cron
+%{__rm} -rf %{cache}/*
 
 %files -f %{name}.lang -f %{name}-gnulib.lang
 %defattr(-,root,root,-)
@@ -121,6 +121,10 @@ install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
 %lang(it)   %{_datadir}/man/it/man*/*
 
 %changelog
+* Thu Jul 12 2012 Peter Schiffer <pschiffe at redhat.com> - 2.6.2-2
+- resolves: #829553
+  clear the old man cache on install or update
+
 * Tue Jul 10 2012 Peter Schiffer <pschiffe at redhat.com> - 2.6.2-1
 - resolves: #833312
   update to 2.6.2


More information about the scm-commits mailing list