diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-25 12:13:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-25 12:13:15 +0000 |
commit | 1ae7426d9fae79fc06cd0c737b91ababea935cd3 (patch) | |
tree | d86b4cb99082f87f1fd47f1b644247ee84c0468a /mandocdb.c | |
parent | 808395a1d8da0d8b2c8b93e5296aaf97629fa228 (diff) | |
download | mandoc-1ae7426d9fae79fc06cd0c737b91ababea935cd3.tar.gz mandoc-1ae7426d9fae79fc06cd0c737b91ababea935cd3.tar.zst mandoc-1ae7426d9fae79fc06cd0c737b91ababea935cd3.zip |
Reduce the verbosity of makewhatis -t:
In the past, it always showed the title lines of the files processed.
Now, it only shows them when called with -D.
That is better because pkg_create calls makewhatis -t.
It is also more consistent with -D behaviour in non- -t modes.
Issue reported by ajacoutot@; ok espie@ ajacoutot@ jasper@.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.144 2014/04/23 21:06:41 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.145 2014/04/25 12:13:15 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1996,6 +1996,8 @@ dbadd(struct mpage *mpage, struct mchars *mc) mlink = mpage->mlinks; if (nodb) { + if (0 == debug) + return; while (NULL != mlink) { fputs(mlink->name, stdout); if (NULL == mlink->next || |