summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-12 20:59:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-12 20:59:55 +0000
commitf59baab5976948265cd839347cde693cb43a2c4a (patch)
tree34a9adb913c86cf3946d0af785e89a05828ab22d /perl-install/install_any.pm
parent50bdbd03aeb42f3cc96b1aa9edeb53b549401bac (diff)
downloaddrakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar.gz
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar.bz2
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar.xz
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.zip
change return type of pkgs::packages2kernels()
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index a57a4d537..2b49f4df2 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -305,11 +305,10 @@ sub setPackages {
($o->{compssUsers}, $o->{compssUsersSorted}) = pkgs::readCompssUsers($o->{meta_class});
#- set kernel-2.4xxx in group LSB
- foreach (grep { $_->[1] eq '' && $_->[2] =~ /^\Q2.4/ } pkgs::packages2kernels($o->{packages})) {
- my $pkg = $_->[0];
- $pkg->rate and internal_error("package " . $pkg->name . " should not have a rate");
- $pkg->set_rate(5);
- $pkg->set_rflags('LSB');
+ foreach (grep { $_->{ext} eq '' && $_->{version} =~ /^\Q2.4/ } pkgs::packages2kernels($o->{packages})) {
+ $_->{pkg}->rate and internal_error("package " . $_->{pkg}->name . " should not have a rate");
+ $_->{pkg}->set_rate(5);
+ $_->{pkg}->set_rflags('LSB');
}
#- preselect default_packages and compssUsersChoices.