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
epel9
Jens Petersen 12 years ago
parent 8af2ba71ac
commit 93b9c369fc

@ -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:)\

Loading…
Cancel
Save