[Collab-qa-commits] r2293 - udd/udd
Andreas Tille
tille at alioth.debian.org
Tue May 8 20:09:04 UTC 2012
Author: tille
Date: 2012-05-08 20:09:03 +0000 (Tue, 08 May 2012)
New Revision: 2293
Modified:
udd/udd/bibref_gatherer.py
Log:
Better propagation of BibTeX errors to logfile
Modified: udd/udd/bibref_gatherer.py
===================================================================
--- udd/udd/bibref_gatherer.py 2012-05-08 20:08:18 UTC (rev 2292)
+++ udd/udd/bibref_gatherer.py 2012-05-08 20:09:03 UTC (rev 2293)
@@ -45,10 +45,17 @@
return(False, 'Wrong exe: '+texexe)
errstring=""
if ptex.wait():
- for logrow in ptex.communicate()[0].splitlines():
- if logrow.startswith('!'):
- errstring += logrow
- return(False, errstring)
+ if texexe == 'pdflatex':
+ for logrow in ptex.communicate()[0].splitlines():
+ if logrow.startswith('!'):
+ errstring += logrow
+ return(False, errstring)
+ else:
+ for logrow in ptex.communicate()[0].splitlines():
+ if logrow.startswith('This is BibTeX'):
+ continue
+ errstring += logrow + '\n'
+ return(False, errstring)
return(True, errstring)
other_known_keys = ('Archive', 'Contact', 'CRAN', 'Donation', 'Download', 'Help', 'Homepage', 'Name', 'Watch', 'Webservice')
More information about the Collab-qa-commits
mailing list