summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-30 23:31:43 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-30 23:31:43 +0000
commited5d6dbf4cf6fc12f39093614dc7b6a960dcd6d3 (patch)
tree9ea150cc2709e8c02b215d3fa45dacdebe317782 /perl-install/install/pkgs.pm
parent9218b9adc6f79113f7123f66754f5523a4bb7f95 (diff)
downloaddrakx-ed5d6dbf4cf6fc12f39093614dc7b6a960dcd6d3.tar
drakx-ed5d6dbf4cf6fc12f39093614dc7b6a960dcd6d3.tar.gz
drakx-ed5d6dbf4cf6fc12f39093614dc7b6a960dcd6d3.tar.bz2
drakx-ed5d6dbf4cf6fc12f39093614dc7b6a960dcd6d3.tar.xz
drakx-ed5d6dbf4cf6fc12f39093614dc7b6a960dcd6d3.zip
fallback on most generic kernel if the suitable one is not available
(only kernel-desktop586-latest is available on Dual ISO for i586)
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index e3d453791..6e01f37e8 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -117,6 +117,13 @@ sub bestKernelPackage {
my @preferred_exts = _bestKernel_extensions($o_match_all_hardware);
my @kernels = grep { $_ } map { packageByName($packages, "kernel$_-latest") } @preferred_exts;
+ if (!@kernels) {
+ #- fallback on most generic kernel if the suitable one is not available
+ #- (only kernel-desktop586-latest is available on Dual ISO for i586)
+ my @fallback_exts = _bestKernel_extensions('force');
+ @kernels = grep { $_ } map { packageByName($packages, "kernel$_-latest") } @fallback_exts;
+ }
+
log::l("bestKernelPackage (" . join(':', @preferred_exts) . "): " . join(' ', map { $_->name } @kernels) . (@kernels > 1 ? ' (choosing the first)' : ''));
$kernels[0];