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.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index f8d442765..ebea1a86a 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -299,7 +299,7 @@ sub set {
sub pack_langs {
my ($l) = @_;
member('all', @$l) ? 'all' :
- join ':', uniq(map { $languages{$_}[2] } @$l);
+ join ':', uniq(map { $languages{$_}[3] } @$l);
}
sub unpack_langs {
@@ -311,6 +311,15 @@ sub unpack_langs {
];
}
+sub unpack_lang_codes {
+ my ($langs) = @_;
+ [
+ $langs eq 'all' ?
+ map { substr($_->[2], 0, 2) } values %languages :
+ split(':', $langs)
+ ];
+}
+
sub write_langs {
my ($prefix, $langs) = @_;
symlink "$prefix/etc/rpm", "/etc/rpm" if $prefix;