chiark / gitweb /
Print that we are updating for every rsync
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Jul 2009 16:48:19 +0000 (17:48 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 9 Jul 2009 16:48:19 +0000 (17:48 +0100)
pctb/convert.c
pctb/ocr.c

index 6bc9b2c8897d28ce7f88793a0d424ef131d3e76c..df0497e5094392fe581cba12c6f595ff72c2a22c 100644 (file)
@@ -119,6 +119,8 @@ static void rsync_core(const char *stem, const char *suffix,
                       const char *zopt) {
   pid_t fetcher;
 
                       const char *zopt) {
   pid_t fetcher;
 
+  progress("Updating dictionary %s...",stem);
+
   sysassert( (fetcher= fork()) != -1 );
   if (!fetcher) {
     const char *rsync= getenv("YPPSC_PCTB_RSYNC");
   sysassert( (fetcher= fork()) != -1 );
   if (!fetcher) {
     const char *rsync= getenv("YPPSC_PCTB_RSYNC");
index 37ca7d28ed284de9b70c1cc29b1f528a20d24a12..f7cb4504224583c48f4796a11991b48b81366e22 100644 (file)
@@ -597,7 +597,6 @@ OcrReader *ocr_init(int h) {
 
   if (o_flags & ff_dict_fetch) {
     char *fetchfile= masprintf("char%d",h);
 
   if (o_flags & ff_dict_fetch) {
     char *fetchfile= masprintf("char%d",h);
-    progress("Updating %s...",fetchfile);
     fetch_with_rsync(fetchfile);
     free(fetchfile);
   }
     fetch_with_rsync(fetchfile);
     free(fetchfile);
   }