From: Ian Jackson Date: Sun, 19 Jul 2009 11:21:38 +0000 (+0100) Subject: print vprogress messages to files if any -D options specified X-Git-Tag: 2.1~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=commitdiff_plain;h=817c4b56d7b72dbb9dcce70d0e22f57d8f687ba0 print vprogress messages to files if any -D options specified --- diff --git a/pctb/convert.c b/pctb/convert.c index 4ded228..4fdb063 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -361,7 +361,7 @@ static void vprogress_core(int spinner, const char *fmt, va_list al) { int r; if (o_quiet) return; - if (!isatty(2)) return; + if (!debug_flags && !isatty(2)) return; if (last_progress_len) putc('\r',stderr);