From e1217818b7cce36c5bbfd38f08ad88d504ea6eb6 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. --- 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.17.1