diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-02-12 20:37:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-02-12 20:37:10 +0000 |
commit | 9f8040ddd852bf82d0ad1d71ee4e6ef5a8fa0d10 (patch) | |
tree | 6fb354357671a5c8d42b52a5eb717007d7dbf36c | |
parent | 0619a67bed971c9c23bf0d0afe19af33b716dee6 (diff) | |
download | drakx-9f8040ddd852bf82d0ad1d71ee4e6ef5a8fa0d10.tar drakx-9f8040ddd852bf82d0ad1d71ee4e6ef5a8fa0d10.tar.gz drakx-9f8040ddd852bf82d0ad1d71ee4e6ef5a8fa0d10.tar.bz2 drakx-9f8040ddd852bf82d0ad1d71ee4e6ef5a8fa0d10.tar.xz drakx-9f8040ddd852bf82d0ad1d71ee4e6ef5a8fa0d10.zip |
add kernel-2.4* in group LSB
-rw-r--r-- | perl-install/install_any.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index d6ffaef5c..a57a4d537 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -304,6 +304,14 @@ sub setPackages { pkgs::read_rpmsrate($o->{packages}, getFile("Mandrake/base/rpmsrate")); ($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'); + } + #- preselect default_packages and compssUsersChoices. setDefaultPackages($o); pkgs::selectPackage($o->{packages}, pkgs::packageByName($o->{packages}, $_) || next) foreach @{$o->{default_packages}}; |