aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-07-10 08:45:18 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-07-10 08:45:18 -0500
commit2d7a6789be0334935a362676fcb13182ac5b9780 (patch)
treedd2e903faac398029de466de7fa12f46a645d72a
parent1f973d93f4288845243988423781f85075f312de (diff)
downloadmediagoblin-2d7a6789be0334935a362676fcb13182ac5b9780.tar.lz
mediagoblin-2d7a6789be0334935a362676fcb13182ac5b9780.tar.xz
mediagoblin-2d7a6789be0334935a362676fcb13182ac5b9780.zip
Fixing bug that effectively broke document support in 0.4.0.. how embarassing :(
This fix sponsored by Christophe Drevet. Thank you!
-rw-r--r--mediagoblin/media_types/pdf/processing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/media_types/pdf/processing.py b/mediagoblin/media_types/pdf/processing.py
index 49742fd7..b5adb5e6 100644
--- a/mediagoblin/media_types/pdf/processing.py
+++ b/mediagoblin/media_types/pdf/processing.py
@@ -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()