[Collab-qa-commits] r2325 - udd/udd

Andreas Tille tille at alioth.debian.org
Mon May 14 10:31:01 UTC 2012


Author: tille
Date: 2012-05-14 10:31:01 +0000 (Mon, 14 May 2012)
New Revision: 2325

Modified:
   udd/udd/bibref_gatherer.py
Log:
commit before check to make sure the table is not locked in case LaTeX run will fail for whatever reason


Modified: udd/udd/bibref_gatherer.py
===================================================================
--- udd/udd/bibref_gatherer.py	2012-05-14 09:59:23 UTC (rev 2324)
+++ udd/udd/bibref_gatherer.py	2012-05-14 10:31:01 UTC (rev 2325)
@@ -316,6 +316,9 @@
     cur.execute("DEALLOCATE bibref_insert")
     cur.execute("ANALYZE %s" % my_config['table'])
 
+    # commit before check to make sure the table is not locked in case LaTeX run will fail for whatever reason
+    self.connection.commit()
+
     # if there is a working LaTeX installation try to build a BibTeX database and test it by creating a debian.pdf file
     if isfile('/usr/bin/pdflatex') and access('/usr/bin/pdflatex', X_OK) and \
        isfile('/usr/bin/bibtex')   and access('/usr/bin/bibtex', X_OK) and \




More information about the Collab-qa-commits mailing list