Ticket #14626: 14626_workaround.patch

File 14626_workaround.patch, 899 bytes (added by jdemeyer, 9 years ago)
  • doc/common/builder.py

    # 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  
    202202        self.latex()
    203203        tex_dir = self._output_dir('latex')
    204204        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)
    206207
    207208        logger.warning("Build finished.  The built documents can be found in %s", pdf_dir)
    208209