auto-br-analyze.pl: Fix failure when LANG != C. (RHBZ#545867).
authorRichard Jones <rjones@redhat.com>
Wed, 9 Dec 2009 15:05:08 +0000 (15:05 +0000)
committerRichard Jones <rjones@redhat.com>
Wed, 9 Dec 2009 15:05:08 +0000 (15:05 +0000)
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.

auto-br-analyze.pl.in

index 9163f53..7aa7e61 100755 (executable)
@@ -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 | ".