From 76ac4b7bf9d1f470baf55a1a0056bca08cf3dc12 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 24 Jan 2000 16:05:17 +0000 Subject: [PATCH] Quietly delete duplicate Info entries with --quiet. Reviewed by: bde --- contrib/texinfo/util/install-info.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/texinfo/util/install-info.c b/contrib/texinfo/util/install-info.c index 1f640bd888af..e69bbeadb2f6 100644 --- a/contrib/texinfo/util/install-info.c +++ b/contrib/texinfo/util/install-info.c @@ -1412,9 +1412,14 @@ For more information about these matters, see the files named COPYING.\n"), dir_lines[i].start, dir_lines[i].size) && !dir_lines[i].delete) - fatal (_("menu item `%s' already exists, for file `%s'"), + { + if (quiet_flag) + dir_lines[i].delete = 1; + else + fatal (_("menu item `%s' already exists, for file `%s'"), extract_menu_item_name (entry->text), extract_menu_file_name (dir_lines[i].start)); + } if (dir_lines[i].start[0] == '*' && menu_line_lessp (entry->text, entry->text_len, dir_lines[i].start,