From: Ian Jackson Date: Thu, 10 Sep 2009 15:48:25 +0000 (+0100) Subject: Do not attempt (and fail due to safety catch) to update reject dict if --dict-no... X-Git-Tag: 3.5^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=commitdiff_plain;h=8b3713607feb7e050391cf7cce80852de12b7730 Do not attempt (and fail due to safety catch) to update reject dict if --dict-no-update --- diff --git a/yarrg/ocr.c b/yarrg/ocr.c index 92b0903..08bc60c 100644 --- a/yarrg/ocr.c +++ b/yarrg/ocr.c @@ -279,7 +279,8 @@ static int should_reject(OcrReader *rd) { int ovector[30]; if (!rejections_loaded) { - fetch_with_rsync("reject"); + if (o_flags & ff_dict_fetch) + fetch_with_rsync("reject"); load_rejections("master"); load_rejections("local"); rejections_loaded=1;