mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Quietly delete duplicate Info entries with --quiet.
Reviewed by: bde
This commit is contained in:
parent
5c9037ff73
commit
76ac4b7bf9
1 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue