diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-24 20:43:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-24 20:43:26 +0000 |
commit | a8623ec0bc78216c0d3893c2df3df2b2ece5b40a (patch) | |
tree | f30c1cf471ef4a3a9c07545f3c4efbf3f1d71597 /perl-install/install/pkgs.pm | |
parent | fa6416acb3ffdf51e5c3d34dcfcbd94794a6eb16 (diff) | |
download | drakx-a8623ec0bc78216c0d3893c2df3df2b2ece5b40a.tar drakx-a8623ec0bc78216c0d3893c2df3df2b2ece5b40a.tar.gz drakx-a8623ec0bc78216c0d3893c2df3df2b2ece5b40a.tar.bz2 drakx-a8623ec0bc78216c0d3893c2df3df2b2ece5b40a.tar.xz drakx-a8623ec0bc78216c0d3893c2df3df2b2ece5b40a.zip |
(bestKernelPackage) adapt to new kernel flavors
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r-- | perl-install/install/pkgs.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 3ee676a61..53e86f5b0 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -138,11 +138,12 @@ sub bestKernelPackage { my ($packages) = @_; my @preferred_exts = - $::o->{match_all_hardware} ? (arch() =~ /x86_64/ ? '' : '-legacy') : - $::build_globetrotter ? '' : + $::o->{match_all_hardware} ? (arch() =~ /x86_64/ ? '-desktop' : '-desktop586') : + $::build_globetrotter ? '-desktop' : detect_devices::is_xbox() ? '-xbox' : - detect_devices::is_i586() ? '-legacy' : - detect_devices::dmi_detect_memory() > 3.8 * 1024 ? '-enterprise' : + detect_devices::is_i586() ? '-desktop586' : + detect_devices::isLaptop() ? '-laptop' : + detect_devices::dmi_detect_memory() > 3.8 * 1024 ? '-server' : ''; my @kernels = grep { $_ } map { packageByName($packages, "kernel$_-latest") } @preferred_exts, ''; |