add haddock reindexing for %postun also

This will slow down removal of ghc-*-devel pkgs but seems no simple
way round that and removal is less common than installing anyway.
epel9
Jens Petersen 12 years ago
parent 9e0aa2550c
commit ea552a4daf

@ -224,6 +224,14 @@ 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\
fi\
\
%posttrans -n %{basepkg}-devel\
if [ -f %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex ]; then\

@ -73,8 +73,8 @@ EOF
%changelog
* Mon Oct 29 2012 Jens Petersen <petersen@redhat.com> - 0.98-1
- gen_contents_index is now run once from posttrans (#870694)
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Saving_state_between_scriptlets
- gen_contents_index is now run once from posttrans or after removal (#870694)
see http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Saving_state_between_scriptlets
* Thu Oct 25 2012 Jens Petersen <petersen@redhat.com> - 0.97.3-1
- BR redhat-rpm-config instead of ghc-rpm-macros

Loading…
Cancel
Save