File: skippdf_missingdelete.patch

package info (click to toggle)
fuzzyocr 3.6.0-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 684 kB
  • ctags: 154
  • sloc: perl: 3,150; sh: 45; makefile: 42
file content (16 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix warnings while scanning PDFs
Forwarded: Christian Holler <decoder@own-hero.net>
Author: Gerald Turner <gturner@unzane.com>
Bug-Debian: http://bugs.debian.org/634009
Last-Update: 2011-07-15

--- fuzzyocr-3.6.0.orig/FuzzyOcr.pm	2011-07-15 11:34:42.000000000 -0700
+++ fuzzyocr-3.6.0/FuzzyOcr.pm	2011-07-15 11:33:12.000000000 -0700
@@ -261,6 +261,7 @@
 	if ($imgfiles{$filename}{ftype} == 6) {
 		unless ($conf->{focr_scan_pdfs}) {
 			infolog("Skipping PDF file: PDF Scanning was disabled in config");
+		        delete $imgfiles{$filename};
 			next;
 		}
 	} else {