Commit 49655091 authored by Christophe Maudoux's avatar Christophe Maudoux

Fix lang for Ubuntu

parent 8a36c3d0
Pipeline #3829 passed with stages
in 11 minutes
......@@ -71,7 +71,9 @@ sub extractFormInfo {
"Launching:\ngpgv --homedir /dev/null --keyring $self->{db} <<EOF\n$signed\nEOF"
);
my $lang = $ENV{LANG};
my $language = $ENV{LANGUAGE};
$ENV{LANG} = 'C';
$ENV{LANGUAGE} = 'C';
IPC::Run::run( [ 'gpgv', '--homedir', '/dev/null', '--keyring', $self->db ],
\$signed, \$out, \$err, IPC::Run::timeout(10) );
if ( $? >> 8 != 0 ) {
......@@ -101,6 +103,7 @@ sub extractFormInfo {
IPC::Run::timeout(10)
);
$ENV{LANG} = $lang;
$ENV{LANGUAGE} = $language;
if ( $? >> 8 != 0 ) {
$self->logger->error("gpg --list-key return an error:\n$err");
return PE_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment