summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-02 10:31:11 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-02 10:31:11 +0000
commite7d68d879571ae2e5a3301da94c18c3f9151cec0 (patch)
treea41aa9b5e6fefe681bbf2bf2d7d3ae9682d64e61 /perl-install/pkgs.pm
parent74e89d3c3ee6e4d083edf5a8633793f1ba77ab84 (diff)
downloaddrakx-e7d68d879571ae2e5a3301da94c18c3f9151cec0.tar
drakx-e7d68d879571ae2e5a3301da94c18c3f9151cec0.tar.gz
drakx-e7d68d879571ae2e5a3301da94c18c3f9151cec0.tar.bz2
drakx-e7d68d879571ae2e5a3301da94c18c3f9151cec0.tar.xz
drakx-e7d68d879571ae2e5a3301da94c18c3f9151cec0.zip
no_comment
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm15
1 files changed, 13 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index b85be3b35..01d744038 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -275,12 +275,23 @@ sub isLangSensitive($$) {
}
sub setSelectedFromCompssList($$$$$$) {
- my ($compssListLevels, $packages, $size, $install_class, $lang, $isUpgrade) = @_;
+ my ($compssListLevels, $packages, $level, $install_class) = @_;
+ my ($ind);
+
+ map_index { $ind = $::i if $_ eq $install_class } @$compssListLevels;
+
+ foreach (allpackages($packages)) {
+ &select($packages, $_) if $_->{values}[$ind] >= $level;
+ }
+}
+
+sub setSelectedFromCompssList_($$$$$$) {
+ my ($compssListLevels, $packages, $size, $install_class, $isUpgrade) = @_;
my ($level, $ind) = 100;
my @packages = allpackages($packages);
my @places = do {
- map_index { $ind = $::i if $_ eq $install_class } @{$compssListLevels};
+ map_index { $ind = $::i if $_ eq $install_class } @$compssListLevels;
defined $ind or log::l("unknown install class $install_class in compssList"), return;
my @values = map { $_->{values}[$ind] } @packages;