fix pstotiff-is-rubbish.patch
This commit is contained in:
parent
d456d228d2
commit
c7711b78fe
@ -1,7 +1,7 @@
|
|||||||
diff -up hplip-3.10.5/fax/filters/pstotiff.pstotiff-is-rubbish hplip-3.10.5/fax/filters/pstotiff
|
diff -up hplip-3.10.5/fax/filters/pstotiff.pstotiff-is-rubbish hplip-3.10.5/fax/filters/pstotiff
|
||||||
--- hplip-3.10.5/fax/filters/pstotiff.pstotiff-is-rubbish 2010-05-13 01:44:57.000000000 +0200
|
--- hplip-3.10.5/fax/filters/pstotiff.pstotiff-is-rubbish 2010-05-13 01:44:57.000000000 +0200
|
||||||
+++ hplip-3.10.5/fax/filters/pstotiff 2010-05-17 14:39:55.000000000 +0200
|
+++ hplip-3.10.5/fax/filters/pstotiff 2010-05-17 14:39:55.000000000 +0200
|
||||||
@@ -1,40 +1,16 @@
|
@@ -1,40 +1,11 @@
|
||||||
-#!/usr/bin/env python
|
-#!/usr/bin/env python
|
||||||
-
|
-
|
||||||
-import os
|
-import os
|
||||||
@ -49,12 +49,7 @@ diff -up hplip-3.10.5/fax/filters/pstotiff.pstotiff-is-rubbish hplip-3.10.5/fax/
|
|||||||
+ IN="$6"
|
+ IN="$6"
|
||||||
+fi
|
+fi
|
||||||
+
|
+
|
||||||
+TMPFILE=`mktemp /tmp/pstotiff.XXXXXX` || exit 1
|
|
||||||
+gs -I/usr/share/cups/fonts -sDEVICE=tiffg4 -dNOPAUSE -dBATCH \
|
+gs -I/usr/share/cups/fonts -sDEVICE=tiffg4 -dNOPAUSE -dBATCH \
|
||||||
+ -dSAFER -dPARANOIDSAFER \
|
+ -dSAFER -dPARANOIDSAFER \
|
||||||
+ -dSHORTERRORS -dWRITESYSTEMDICT -dGHOSTSCRIPT \
|
+ -dSHORTERRORS -dWRITESYSTEMDICT -dGHOSTSCRIPT \
|
||||||
+ -sstdout=%stderr -sOutputFile="$TMPFILE" "$IN"
|
+ -sstdout=%stderr -sOutputFile=- "$IN"
|
||||||
+RET=$?
|
|
||||||
+cat "$TMPFILE"
|
|
||||||
+rm -f "$TMPFILE"
|
|
||||||
+exit $RET
|
|
||||||
|
Loading…
Reference in New Issue
Block a user