summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/lang.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 5e5e3af42..4154ee5d6 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -312,7 +312,7 @@ sub unpack_langs {
sub write_langs {
my ($prefix, $langs) = @_;
symlink "$prefix/etc/rpm", "/etc/rpm" if $prefix;
- substInFile { s/%_install_langs//; $_ .= "%_install_langs $langs\n" if eof } "$prefix/etc/rpm/macros";
+ substInFile { s/%_install_langs.*//; $_ .= "%_install_langs $langs\n" if eof } "$prefix/etc/rpm/macros";
}
sub write {