From 900f97673f6b801fc9e8e14989f3ba77807588a5 Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Thu, 12 Jul 2012 17:12:54 +0200 Subject: [PATCH] - resolves: #829553 clear the old man cache on install or update --- man-db.spec | 10 +++++++--- 1 file 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 - 2.6.2-2 +- resolves: #829553 + clear the old man cache on install or update + * Tue Jul 10 2012 Peter Schiffer - 2.6.2-1 - resolves: #833312 update to 2.6.2