revert the ghc doc index changes back to just using a (now optional) cronjob

The overhead to re-indexing in posttrans and postun seems too high
This commit is contained in:
Jens Petersen 2012-11-16 16:25:00 +09:00
parent 8af2ba71ac
commit 93b9c369fc
1 changed files with 1 additions and 19 deletions

View File

@ -218,27 +218,9 @@ This package contains the development files.
%define basepkg ghc-%{pkgname}\
%post -n %{basepkg}-devel\
%ghc_pkg_recache\
if [ -d %{_localstatedir}/lib/rpm-state/ghc/ ]; then\
touch %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
fi\
\
%postun -n %{basepkg}-devel\
%ghc_pkg_recache\
if [ $1 -gt 1 ] ; then\
if [ -d %{_localstatedir}/lib/rpm-state/ghc/ ]; then\
touch %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
fi\
else\
cd %{ghcdocbasedir}/libraries\
./gen_contents_index >/dev/null\
fi\
\
%posttrans -n %{basepkg}-devel\
if [ -f %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex ]; then\
cd %{ghcdocbasedir}/libraries\
./gen_contents_index >/dev/null\
rm %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
fi
%ghc_pkg_recache
# ghc_package_devel [-c cdepslist] [-h pkgdepslist] [-l licensetag] [name] [version]
%ghc_package_devel(c:h:l:)\