rpms/ghc/F-10 ghc-rpm-macros.ghc,1.5,1.6

Jens Petersen petersen at fedoraproject.org
Thu Oct 23 08:31:50 UTC 2008


Author: petersen

Update of /cvs/extras/rpms/ghc/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32348/F-10

Modified Files:
	ghc-rpm-macros.ghc 
Log Message:
make ghc_reindex_haddock safer when ghc-doc not installed


Index: ghc-rpm-macros.ghc
===================================================================
RCS file: /cvs/extras/rpms/ghc/F-10/ghc-rpm-macros.ghc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ghc-rpm-macros.ghc	23 Oct 2008 06:14:14 -0000	1.5
+++ ghc-rpm-macros.ghc	23 Oct 2008 08:31:20 -0000	1.6
@@ -56,5 +56,5 @@
 %{nil}
 
 %ghc_reindex_haddock \
-( cd %{_docdir}/ghc/libraries && ./gen_contents_index ) || : \
+( cd %{_docdir}/ghc/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index ) || : \
 %{nil}




More information about the scm-commits mailing list