[gedit-latex] Make the LaTeX postprocessor depend on the compiler exit status



commit fd302b0dd46d5ed253c5c961987a9dda83ecc009
Author: Lucas David-Roesler <roesler lucas gmail com>
Date:   Sun Jul 17 22:54:31 2011 -0400

    Make the LaTeX postprocessor depend on the compiler exit status

 latex/tools/postprocess.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/latex/tools/postprocess.py b/latex/tools/postprocess.py
index 56fa031..db3e2b2 100644
--- a/latex/tools/postprocess.py
+++ b/latex/tools/postprocess.py
@@ -109,14 +109,15 @@ class LaTeXPostProcessor(PostProcessor):
     _PATTERN = pattern = re.compile(r"(^! (?P<text>.*?)$)|(^l\.(?P<line>[0-9]+))", re.MULTILINE)
 
     def __init__(self):
-        pass
+        self._successful = False
 
     def process(self, file, stdout, stderr, condition):
         self._file = file
+        self._successful = not bool(condition)
 
     @property
     def successful(self):
-        return True
+        return self._successful
 
     @property
     def summary(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]