File chm2pdf-0.9.1-bashisms.patch of Package chm2pdf
Index: chm2pdf
===================================================================
--- chm2pdf.orig 2010-12-05 01:36:09.000000000 +0300
+++ chm2pdf 2010-12-05 01:36:16.000000000 +0300
@@ -1087,7 +1087,7 @@ def main(argv):
if options['verbose'] == '--verbose' and options['verbositylevel'] == 'high':
os.system('extract_chmLib ' + filename + ' ' + CHM2PDF_ORIG_DIR)
else:
- os.system('extract_chmLib ' + filename + ' ' + CHM2PDF_ORIG_DIR + '&> /dev/null')
+ os.system('extract_chmLib ' + filename + ' ' + CHM2PDF_ORIG_DIR + '> /dev/null 2>&1')
convert_to_pdf(cfile, filename, outputfilename, options)
shutil.rmtree(CHM2PDF_TEMP_WORK_DIR)