summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-27 13:51:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-27 13:51:59 +0000
commita45e4819dc25d2bdcd2d2b9bc1b8a2e7522ef65e (patch)
treea49cf346e5393d904914a2e4957f74ca1af1ec97 /perl-install/install_any.pm
parentee90af4458c61141f5850784c806a29074cb941f (diff)
downloaddrakx-a45e4819dc25d2bdcd2d2b9bc1b8a2e7522ef65e.tar
drakx-a45e4819dc25d2bdcd2d2b9bc1b8a2e7522ef65e.tar.gz
drakx-a45e4819dc25d2bdcd2d2b9bc1b8a2e7522ef65e.tar.bz2
drakx-a45e4819dc25d2bdcd2d2b9bc1b8a2e7522ef65e.tar.xz
drakx-a45e4819dc25d2bdcd2d2b9bc1b8a2e7522ef65e.zip
have locales-xx first in default_packages so that default choosing based on
locales works for packages in default_packages
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 2b840b6d0..b29cf48b5 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -394,10 +394,10 @@ sub setDefaultPackages {
foreach (lang::langs($o->{locale}{langs})) {
pkgs::packageByName($o->{packages}, "locales-$_") or next;
- push @{$o->{default_packages}}, "locales-$_";
+ unshift @{$o->{default_packages}}, "locales-$_";
$o->{compssUsersChoice}{qq(LOCALES"$_")} = 1; #- mainly for zh in case of zh_TW.Big5
}
- push @{$o->{default_packages}}, 'locales-' . substr(lang::c2locale($o->{locale}{country}), 0, 2);
+ unshift @{$o->{default_packages}}, 'locales-' . substr(lang::c2locale($o->{locale}{country}), 0, 2);
foreach (lang::langsLANGUAGE($o->{locale}{langs})) {
$o->{compssUsersChoice}{qq(LOCALES"$_")} = 1;
}