summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 8002255af..22d78b5ad 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -904,10 +904,10 @@ sub read {
}
sub write_langs {
- my ($prefix, $langs) = @_;
+ my ($langs) = @_;
my $s = pack_langs($langs);
- symlink "$prefix/etc/rpm", "/etc/rpm" if $prefix;
- substInFile { s/%_install_langs.*//; $_ .= "%_install_langs $s\n" if eof && $s } "$prefix/etc/rpm/macros";
+ symlink "$::prefix/etc/rpm", "/etc/rpm" if $::prefix;
+ substInFile { s/%_install_langs.*//; $_ .= "%_install_langs $s\n" if eof && $s } "$::prefix/etc/rpm/macros";
}
sub i18n_env {