File: show_pdflatex_output.diff

package info (click to toggle)
s3ql 3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,020 kB
  • sloc: python: 15,998; makefile: 125; sh: 37; ansic: 22
file content (29 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Mon, 27 Jun 2016 11:25:34 -0700
Subject: Don't hide pdflatex output.

Origin: debian
Forwarded: not-needed
Patch-Name: show_pdflatex_output.diff

Upstream is not interested in this patch.
---
 setup.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index 4f28bd3..7d2dc48 100755
--- a/setup.py
+++ b/setup.py
@@ -98,9 +98,8 @@ class build_docs(setuptools.Command):
 
         print('Running pdflatex...')
         for _ in range(3):
-            with open('/dev/null', 'wb') as null:
-                subprocess.check_call(['pdflatex', '-interaction', 'batchmode', 'manual.tex'],
-                                      cwd=os.path.join(dest_dir, 'latex'), stdout=null)
+            subprocess.check_call(['pdflatex', '-interaction', 'nonstopmode', 'manual.tex'],
+                                   cwd=os.path.join(dest_dir, 'latex'))
         os.rename(os.path.join(dest_dir, 'latex', 'manual.pdf'),
                   os.path.join(dest_dir, 'manual.pdf'))