diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index 65b0c24..599135d 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -56,5 +56,5 @@ install -m 755 register.sh unregister.sh ${RPM_BUILD_ROOT}%{pkg_libdir} \ %{nil} %ghc_reindex_haddock \ -( cd %{_docdir}/ghc/libraries && ./gen_contents_index ) || : \ +( cd %{_docdir}/ghc/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index ) || : \ %{nil}