From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 6345ac15 for ; Fri, 2 Sep 2016 09:04:00 -0500 (EST) Date: Fri, 2 Sep 2016 09:04:00 -0500 (EST) Message-Id: <13028873864736465677.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: When "makewhatis -d" tries to add to a database that doesn't X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- When "makewhatis -d" tries to add to a database that doesn't (yet) exist, silently create it from scratch instead of printing a warning. The annoying warning message was reported by ajacoutot@, and espie@ convincingly argues that a non-existing database can be considered equivalent to an empty one. Modified Files: -------------- mdocml: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v retrieving revision 1.229 retrieving revision 1.230 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.229 -r1.230 --- mandocdb.c +++ mandocdb.c @@ -449,9 +449,9 @@ mandocdb(int argc, char *argv[]) dbprune(dba); } else { /* Database missing or corrupt. */ - say(MANDOC_DB, - "%s: Automatically recreating from scratch", - strerror(errno)); + if (op != OP_UPDATE || errno != ENOENT) + say(MANDOC_DB, "%s: Automatically recreating" + " from scratch", strerror(errno)); exitcode = (int)MANDOCLEVEL_OK; op = OP_DEFAULT; if (0 == treescan()) -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv