summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-14 16:42:45 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-14 16:42:45 +0000
commitea1c93402dfa2aba19ab3dbc3551cd21572affb9 (patch)
treeec45ca3dd1f9c2899748fabe19ef9f4a2d1ba13d /perl-install/pkgs.pm
parent0f4c7b1bab30307ecee99c03506b0bb632e5c51f (diff)
downloaddrakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar
drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar.gz
drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar.bz2
drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar.xz
drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.zip
no_comment
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm24
1 files changed, 14 insertions, 10 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 57a4e1d67..3409956c3 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -22,15 +22,19 @@ hackkernel-pcmcia-cs hackkernel-smp hackkernel-smp-fb
autoirpm autoirpm-icons numlock
);
-my @preferred = qw(
-
+my %by_lang = (
+ ar => [ 'acon' ],
+ ja => [ 'rxvt-CLE' ],
+ ko => [ 'rxvt-CLE' ],
+ zh_CN => [ 'rxvt-CLE' ],
+ 'zh_TW.Big5' => [ 'rxvt-CLE' ],
);
my $A = 20471;
my $B = 16258;
sub correctSize { ($A - $_[0]) * $_[0] / $B } #- size correction in MB.
-sub invCorrectSize { $A / 2 - sqrt(sqr($A) - 4 * $B * $_[0]) / 2 }
+sub invCorrectSize { $A / 2 - sqrt(max(0, sqr($A) - 4 * $B * $_[0])) / 2 }
sub Package {
my ($packages, $name) = @_;
@@ -237,7 +241,7 @@ sub readCompssList($$$) {
foreach (split ':', $ENV{LANGUAGE}) {
my $locales = "locales-" . substr($_, 0, 2);
my $p = $packages->{$locales} or next;
- foreach ($locales, @{$p->{provides} || []}) {
+ foreach ($locales, @{$p->{provides} || []}, @{$by_lang{$_} || []}) {
my $p = $packages->{$_} or next;
$p->{values} = [ map { $_ + 70 } @{$p->{values}} ];
}
@@ -268,12 +272,12 @@ sub readCompssUsers {
\%compssUsers;
}
-sub isLangSensitive($$) {
- my ($name, $lang) = @_;
- local $SIG{__DIE__} = 'none';
- $name =~ /-([^-]*)$/ or return;
- $1 eq $lang || eval { lang::text2lang($1) eq $lang } && !$@;
-}
+#- sub isLangSensitive($$) {
+#- my ($name, $lang) = @_;
+#- local $SIG{__DIE__} = 'none';
+#- $name =~ /-([^-]*)$/ or return;
+#- $1 eq $lang || eval { lang::text2lang($1) eq $lang } && !$@;
+#- }
sub setSelectedFromCompssList($$$$$$) {
my ($compssListLevels, $packages, $level, $install_class) = @_;