summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-12-11 14:29:02 +0000
committerFrancois Pons <fpons@mandriva.com>2000-12-11 14:29:02 +0000
commitd7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f (patch)
tree92345b680407c8f0e3fb74b7eeb00d6abb09d783
parentae0c75815fc6716c421882a514c009f638f4e944 (diff)
downloaddrakx-d7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f.tar
drakx-d7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f.tar.gz
drakx-d7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f.tar.bz2
drakx-d7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f.tar.xz
drakx-d7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f.zip
fixed write_langs for upgrade.
-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 {