git.annexia.org
/
autobuildrequires.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d195eaf
)
auto-br-analyze.pl: Fix failure when LANG != C. (RHBZ#545867).
author
Richard Jones
<rjones@redhat.com>
Wed, 9 Dec 2009 15:05:08 +0000
(15:05 +0000)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/auto-br-analyze.pl.in
b/auto-br-analyze.pl.in
index
9163f53
..
7aa7e61
100755
(executable)
--- 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 | ".