packages: texlive/texlive.spec - catch fmtutil failures

arekm arekm at pld-linux.org
Sun Jan 31 21:58:48 CET 2010


Author: arekm                        Date: Sun Jan 31 20:58:48 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- catch fmtutil failures

---- Files affected:
packages/texlive:
   texlive.spec (1.315 -> 1.316) 

---- Diffs:

================================================================
Index: packages/texlive/texlive.spec
diff -u packages/texlive/texlive.spec:1.315 packages/texlive/texlive.spec:1.316
--- packages/texlive/texlive.spec:1.315	Sun Jan 31 17:44:12 2010
+++ packages/texlive/texlive.spec	Sun Jan 31 21:58:42 2010
@@ -6042,7 +6042,9 @@
 #  	touch $RPM_BUILD_ROOT%{fmtdir}/${format}/${format}.fmt
 #  	touch $RPM_BUILD_ROOT%{fmtdir}/pdftex/${format}.fmt
 #  %else
-	fmtutil --fmtdir $RPM_BUILD_ROOT%{fmtdir} --byfmt=${format}
+	out=$(fmtutil --fmtdir $RPM_BUILD_ROOT%{fmtdir} --byfmt=${format})
+	echo $out
+	[ -z $out ] && echo "fmtutil for format ${format} failed..." && exit 1
 #  %endif
 done
 %if %{with bootstrap}
@@ -13971,6 +13973,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.316  2010/01/31 20:58:42  arekm
+- catch fmtutil failures
+
 Revision 1.315  2010/01/31 16:44:12  megabajt
 - added R: texlive-context-data to -context subpackage
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/texlive/texlive.spec?r1=1.315&r2=1.316&f=u



More information about the pld-cvs-commit mailing list