# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1369251869 -7200
# Node ID 502bdd1a997e8d29f8ec6df799772d468b2f981f
# Parent 155733196d29708f20a6b7ca21b9f556fb8f8e2a
Work around bug in multiprocessing with CalledProcessError exception
diff --git a/doc/common/builder.py b/doc/common/builder.py
a
|
b
|
|
202 | 202 | self.latex() |
203 | 203 | tex_dir = self._output_dir('latex') |
204 | 204 | pdf_dir = self._output_dir('pdf') |
205 | | subprocess.check_call("cd '%s' && make all-pdf && mv -f *.pdf '%s'"%(tex_dir, pdf_dir), shell=True) |
| 205 | if subprocess.call("cd '%s' && $MAKE all-pdf && mv -f *.pdf '%s'"%(tex_dir, pdf_dir), shell=True): |
| 206 | raise RuntimeError("failed to run $MAKE all-pdf in %s"%tex_dir) |
206 | 207 | |
207 | 208 | logger.warning("Build finished. The built documents can be found in %s", pdf_dir) |
208 | 209 | |