clear the old man cache on install or update
This commit is contained in:
Peter Schiffer 2012-07-12 17:12:54 +02:00
parent 11f6dece83
commit 900f97673f

View File

@ -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@redhat.com> - 2.6.2-2
- resolves: #829553
clear the old man cache on install or update
* Tue Jul 10 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-1
- resolves: #833312
update to 2.6.2