Fixing bug that effectively broke document support in 0.4.0.. how embarassing :(
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Jul 2013 13:45:18 +0000 (08:45 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Jul 2013 13:45:18 +0000 (08:45 -0500)
This fix sponsored by Christophe Drevet.  Thank you!

mediagoblin/media_types/pdf/processing.py

index 49742fd72256d7f4baf01717252d6434602e4ac8..b5adb5e6fd7405ac201bf12737954abf0af55bf3 100644 (file)
@@ -250,8 +250,8 @@ def process_pdf(proc_state):
     else:
         pdf_filename = queued_filename.rsplit('.', 1)[0] + '.pdf'
         unoconv = where('unoconv')
-        call(executable=unoconv,
-             args=[unoconv, '-v', '-f', 'pdf', queued_filename])
+        Popen(executable=unoconv,
+              args=[unoconv, '-v', '-f', 'pdf', queued_filename]).wait()
         if not os.path.exists(pdf_filename):
             _log.debug('unoconv failed to convert file to pdf')
             raise BadMediaFail()