From: Richard Jones Date: Wed, 9 Dec 2009 15:05:08 +0000 (+0000) Subject: auto-br-analyze.pl: Fix failure when LANG != C. (RHBZ#545867). X-Git-Tag: v1.2~7 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;ds=inline;h=e4bea38d3c0bb10ee187a43ff71b54ab6770940a;p=autobuildrequires.git auto-br-analyze.pl: Fix failure when LANG != C. (RHBZ#545867). This was running the RPM command and grepping out error messages of the form /^file.*is not owned by any package$/. Unfortunately this fails if language isn't set to English. Fix this by setting LANG=C before running the RPM command. --- diff --git a/auto-br-analyze.pl.in b/auto-br-analyze.pl.in index 9163f53..7aa7e61 100755 --- a/auto-br-analyze.pl.in +++ b/auto-br-analyze.pl.in @@ -58,6 +58,7 @@ my @owners; my ($fh, $filename) = tempfile (); my $cmd = + "export LANG=C; ". "xargs -0 ". "rpm -q --qf '%{name} %{epoch} %{version} %{release} %{arch}\n' -f ". "2>&1 | ".