From 7eb471fcdb113e158d819932116c546a53ee5845 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Tue, 19 May 2020 13:21:44 -0300 Subject: [PATCH] Bug 25346: Supress warning message when install dir exists To see it enable verbose mode To test: 1) Install lang with install dir (cd misc/translator; ./tranlste install de-DE) check message: "de-DE installer dir /...mysql/de-DE already exists." 2) Apply patch 3) Repeat 1, now message is gone 4) Repeat 1 in verbose mode (./translate install de-DE -v) check the message now appears at the bottom. Signed-off-by: Katrin Fischer Signed-off-by: Alex Arnaud Signed-off-by: Jonathan Druart --- misc/translator/LangInstaller.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 7b5e23648b..e3e6ecb6da 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -686,7 +686,7 @@ sub install_installer { my $db_scheme = $self->{context}->config('db_scheme'); my $langdir = "$intradir/installer/data/$db_scheme/$self->{lang}"; if ( -d $langdir ) { - say "$self->{lang} installer dir $langdir already exists.\nDelete it if you want to recreate it."; + say "$self->{lang} installer dir $langdir already exists.\nDelete it if you want to recreate it." if $self->{verbose}; return; } -- 2.39.5