From 49ce8a29d13c7008f0c1c602566666a09686b6ae Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 23 Oct 2008 08:31:20 +0000 Subject: [PATCH] make ghc_reindex_haddock safer when ghc-doc not installed --- ghc-rpm-macros.ghc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}